#0C4F18#0C4F18
#0C4F18 is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.5% C 0.108 H 145.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #0C4F18 |
|---|---|
| RGB | rgb(12, 79, 24) |
| HSL | hsl(131, 74%, 18%) |
| HSV | hsv(131, 85%, 31%) |
| CMYK | cmyk(84.8%, 0%, 69.6%, 69%) |
| CIE-LAB | lab(28.74, -32.87, 26.11) |
| CIE-LCH | lch(28.74, 41.98, 141.53°) |
| OKLab | oklab(37.48% -0.0886 0.0609) |
| OKLCH | oklch(37.48% 0.108 145.5) |
| XYZ | xyz(3.1122, 5.7357, 1.8071) |
| Luminance | 0.0574 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
British Racing Green
#05480D
ΔE00 2.38
Forest Green (survey)
#06470C
ΔE00 2.69
Darkgreen (survey)
#054907
ΔE00 2.82
Bottle Green
#044A05
ΔE00 2.97
Pine Green
#0A481E
ΔE00 3.51
Forest
#0B5509
ΔE00 3.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C4F18 #4F0C43
analogous
#224F0C #0C4F18 #0C4F39
triadic
#0C4F18 #180C4F #4F180C
tetradic
#0C4F18 #0C224F #4F0C43 #4F390C
square
#0C4F18 #0C224F #4F0C43 #4F390C
split-complementary
#0C4F18 #390C4F #4F0C22
monochromatic
#041B08 #041B08 #0C4F18 #148428 #1CB938
Accessibility & contrast
On white
9.78
#0C4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#0C4F18 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C4F18
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C4F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C4F18 | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#504712
Deuteranopia (green-blind)
#49421D
Tritanopia (blue-blind)
#004D43
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #0c4f18; /* rgb */ color: rgb(12, 79, 24); /* oklch */ color: oklch(37.5% 0.108 145.5);
Tailwind
colors: {
custom: {
50: '#598157',
500: '#0c4f18',
950: '#000000',
},
}SCSS
$custom: #0c4f18; $custom-light: #598157; $custom-dark: #000000;
JSON
{
"hex": "#0c4f18",
"rgb": {
"r": 12,
"g": 79,
"b": 24
},
"hsl": {
"h": 130.746,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.37479,
"c": 0.10753,
"h": 145.5
},
"luminance": 0.05736
}Semantic roles & 50–950 ramp
primary
#0C4F18
secondary
#8B2C7A
accent
#38CFF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78