#2A510C#2A510C
#2A510C is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.105 H 135.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A510C |
|---|---|
| RGB | rgb(42, 81, 12) |
| HSL | hsl(94, 74%, 18%) |
| HSV | hsv(94, 85%, 32%) |
| CMYK | cmyk(48.1%, 0%, 85.2%, 68.2%) |
| CIE-LAB | lab(30.41, -26.65, 33.44) |
| CIE-LCH | lch(30.41, 42.76, 128.55°) |
| OKLab | oklab(39.12% -0.0745 0.0742) |
| OKLCH | oklch(39.12% 0.105 135.1) |
| XYZ | xyz(3.9635, 6.4034, 1.3749) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Navy Green
#35530A
ΔE00 2.47
Forest
#0B5509
ΔE00 4.24
Bottle Green
#044A05
ΔE00 4.74
Forrest Green
#154406
ΔE00 4.78
Darkgreen (survey)
#054907
ΔE00 4.92
Forest Green
#2D5A27
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A510C #330C51
analogous
#4C510C #2A510C #0C5110
triadic
#2A510C #0C2A51 #510C2A
tetradic
#2A510C #0C4C51 #330C51 #51100C
square
#2A510C #0C4C51 #330C51 #51100C
split-complementary
#2A510C #100C51 #510C4C
monochromatic
#0E1B04 #0E1C04 #2A510C #468614 #61BC1C
Accessibility & contrast
On white
9.21
#2A510C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#2A510C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A510C
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A510C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A510C | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544A00
Deuteranopia (green-blind)
#4F4614
Tritanopia (blue-blind)
#294E44
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2a510c; /* rgb */ color: rgb(42, 81, 12); /* oklch */ color: oklch(39.1% 0.105 135.1);
Tailwind
colors: {
custom: {
50: '#688251',
500: '#2a510c',
950: '#000000',
},
}SCSS
$custom: #2a510c; $custom-light: #688251; $custom-dark: #000000;
JSON
{
"hex": "#2a510c",
"rgb": {
"r": 42,
"g": 81,
"b": 12
},
"hsl": {
"h": 93.913,
"s": 74.194,
"l": 18.235
},
"oklch": {
"l": 0.39119,
"c": 0.1052,
"h": 135.1
},
"luminance": 0.06404
}Semantic roles & 50–950 ramp
primary
#2A510C
secondary
#632C8C
accent
#37F1A0
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78