RAL Classic color
RAL 7002 Olive grey #7E7B52
RAL 7002 Olive grey is shown here as #7E7B52, a widely published sRGB approximation of the printed swatch. It is a muted yellow in the brown family. In OKLCH it sits at lightness 0.575, chroma 0.059 and hue 104.5°. The nearest CSS named color is darkolivegreen (#556B2F), ΔE2000 12.0 away.
- Relative luminance
- 0.1921
- OKLCH L · C · h
- 0.575 · 0.059 · 104.5
- Best text
- Black 4.84:1
- Hue family
- Brown
#7E7B52 color codes
- HEX
#7E7B52- RGB
rgb(126, 123, 82)- HSL
hsl(56, 21%, 41%)- OKLCH
oklch(0.575 0.059 104.5)- OKLab
oklab(0.575 -0.015 0.057)- CIELAB (D65)
L* 50.93, a* -5.64, b* 22.87- XYZ (D65)
X 17.21, Y 19.21, Z 10.78- CMYK (naive)
cmyk(0%, 2%, 35%, 51%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.
Legibility
Contrast: is #7E7B52 accessible?
Black text on it reaches 4.84:1, passing AA. White text manages only 4.33:1, enough for large text only.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
4.84:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +34
-
White text on it
4.33:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −75
-
As text on black
4.84:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −31
-
As text on white
4.33:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +70
Nearest versions that pass 4.5:1
-
For text on white
#7B784F 4.52:1
Darkening its OKLCH lightness from 0.58 to 0.57 reaches 4.52:1 on white, keeping the hue.
-
For text on black
#7E7B52 4.84:1
It already reaches 4.84:1 on black, so no change is needed.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #7E7B52 live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #7E7B52
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7E7B52 sits at step 600.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Gamut
How vivid #7E7B52 can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.122; #7E7B52 uses 48% of it. Display P3, which many recent phones and laptops show, reaches 0.141 there: 16% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.059
- sRGB edge
- 0.122
- Display P3 edge
- 0.141
- Rec. 2020 edge
- 0.145
- Dominant wavelength
- 572 nm
- Excitation purity
- 36%
- Chromaticity
- x 0.3646, y 0.4070
- This color#7E7B52
- Most vivid in sRGB#857C00
- Most vivid in Display P3oklch(0.575 0.141 104.5)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #7e7b52;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.5214 0.4862 0); }
}
Mixing
Mixing #7E7B52
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#BFBDA9
- OKLab50%#BCBBA6
- OKLCH50%#BCBBA6
Black #000000
- sRGB50%#3F3E29
- OKLab50%#2D2C1A
- OKLCH50%#2D2C1A
Its complement #75749B
- sRGB50%#7A7877
- OKLab50%#797879
- OKLCH50%#996B6D
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7e7b52, white);
color: color-mix(in oklch, #7e7b52 50%, white);
In use
#7E7B52 in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:14.84:1 Passes
- Link and body-size textText, 4.5:14.33:1 Fails
- Large headingLarge text, 3:14.33:1 Passes
- Icons, borders and focus ringsNon-text, 3:14.33:1 Passes
For text on this page, the nearest shade that passes is #7B784F 4.52:1
Dark page
- Button labelText, 4.5:14.84:1 Passes
- Link and body-size textText, 4.5:14.31:1 Fails
- Large headingLarge text, 3:14.31:1 Passes
- Icons, borders and focus ringsNon-text, 3:14.31:1 Passes
For text on this page, the nearest shade that passes is #817E55 4.50:1
Color vision
How #7E7B52 looks with color blindness
Tritanopia changes it most, ΔE2000 16.7; deuteranopia changes it least, 2.7.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#82784F ΔE2000 3.0
Close match
Reads as muted amber
-
Deuteranopia
No working green (medium-wavelength) cones
#837A54 ΔE2000 2.7
Close match
Reads as muted amber
-
Tritanopia
No working blue (short-wavelength) cones
#847670 ΔE2000 16.7
Distinct
Reads as gray
-
Achromatopsia
No cone color vision; lightness only
#797979 ΔE2000 15.7
Distinct
Reads as gray
Pairing check
Checked against its complement, #75749B. Their lightness contrast is only 1.02:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #7E7B52 · #75749B | 35.6 | Stays distinct |
| Protanopia | #82784F · #6A799D | 32.7 | Stays distinct |
| Deuteranopia | #837A54 · #69779A | 31.6 | Stays distinct |
| Tritanopia | #847670 · #6C7B81 | 15.2 | Stays distinct |
| Achromatopsia | #797979 · #787878 | 0.4 | Easily confused |
Harmony
Color harmonies for #7E7B52
Its complement is #75749B, a muted violet, on the cool side of the wheel.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#7E7B52
- Complement#75749B
Complementary
Open in Harmony Studio- −30°#8E7452
- Base#7E7B52
- +30°#6A815E
Analogous
Open in Harmony Studio- Base#7E7B52
- +120°#518193
- +240°#926B81
Triadic
Open in Harmony Studio- Base#7E7B52
- +150°#617B9B
- +210°#866F91
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-ral-7002: #7e7b52;
}
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'ral-7002': '#7e7b52',
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
--color-ral-7002: oklch(0.575 0.059 104.5);
}
{
"color": {
"ral-7002": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4941, 0.4824, 0.3216],
"hex": "#7e7b52"
},
"$description": "RAL 7002 Olive grey (approximate sRGB)"
}
}
}
import SwiftUI
enum Palette {
static let ral7002 = Color(.sRGB, red: 0.494, green: 0.482, blue: 0.322, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Ral7002 = Color(0xFF7E7B52)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #7E7B52 in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.