#2F510C#2F510C
#2F510C is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.102 H 132.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2F510C |
|---|---|
| RGB | rgb(47, 81, 12) |
| HSL | hsl(90, 74%, 18%) |
| HSV | hsv(90, 85%, 32%) |
| CMYK | cmyk(42%, 0%, 85.2%, 68.2%) |
| CIE-LAB | lab(30.68, -24.69, 33.79) |
| CIE-LCH | lch(30.68, 41.85, 126.16°) |
| OKLab | oklab(39.41% -0.0697 0.0749) |
| OKLCH | oklch(39.41% 0.102 132.9) |
| XYZ | xyz(4.1810, 6.5155, 1.3851) |
| Luminance | 0.0652 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Navy Green
#35530A
ΔE00 1.50
Dark Olive Green
#3C4D03
ΔE00 4.72
Forest
#0B5509
ΔE00 5.25
Forrest Green
#154406
ΔE00 5.41
Forest Green
#2D5A27
ΔE00 5.54
Bottle Green
#044A05
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F510C #2E0C51
analogous
#51500C #2F510C #0C510C
triadic
#2F510C #0C2F51 #510C2F
tetradic
#2F510C #0C5150 #2E0C51 #510C0C
square
#2F510C #0C5150 #2E0C51 #510C0C
split-complementary
#2F510C #0C0C51 #500C51
monochromatic
#0F1B04 #101C04 #2F510C #4E8614 #6DBC1C
Accessibility & contrast
On white
9.12
#2F510C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#2F510C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F510C
9.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F510C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F510C | 1.00 | 9.12 | 2.30 | 9.12 |
| #FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554A00
Deuteranopia (green-blind)
#504714
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2f510c; /* rgb */ color: rgb(47, 81, 12); /* oklch */ color: oklch(39.4% 0.102 132.9);
Tailwind
colors: {
custom: {
50: '#6b8251',
500: '#2f510c',
950: '#000000',
},
}SCSS
$custom: #2f510c; $custom-light: #6b8251; $custom-dark: #000000;
JSON
{
"hex": "#2f510c",
"rgb": {
"r": 47,
"g": 81,
"b": 12
},
"hsl": {
"h": 89.565,
"s": 74.194,
"l": 18.235
},
"oklch": {
"l": 0.39413,
"c": 0.10226,
"h": 132.9
},
"luminance": 0.06516
}Semantic roles & 50–950 ramp
primary
#2F510C
secondary
#5C2C8C
accent
#37F193
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78