#0C420C#0C420C
#0C420C is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.2% C 0.100 H 142.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #0C420C |
|---|---|
| RGB | rgb(12, 66, 12) |
| HSL | hsl(120, 69%, 15%) |
| HSV | hsv(120, 82%, 26%) |
| CMYK | cmyk(81.8%, 0%, 81.8%, 74.1%) |
| CIE-LAB | lab(23.67, -29.25, 26.44) |
| CIE-LCH | lch(23.67, 39.43, 137.89°) |
| OKLab | oklab(33.24% -0.0794 0.06) |
| OKLCH | oklch(33.24% 0.1 142.9) |
| XYZ | xyz(2.1661, 4.0009, 1.0058) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Hunter Green (survey)
#0B4008
ΔE00 0.73
Forest Green (survey)
#06470C
ΔE00 1.81
Forrest Green
#154406
ΔE00 1.98
British Racing Green
#05480D
ΔE00 2.11
Racing Green
#014600
ΔE00 2.78
Darkgreen (survey)
#054907
ΔE00 2.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C420C #420C42
analogous
#27420C #0C420C #0C4227
triadic
#0C420C #0C0C42 #420C0C
tetradic
#0C420C #0C2742 #420C42 #42270C
square
#0C420C #0C2742 #420C42 #42270C
split-complementary
#0C420C #270C42 #420C27
monochromatic
#051A05 #051A05 #0C420C #157615 #1FAA1F
Accessibility & contrast
On white
11.67
#0C420C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#0C420C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C420C
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C420C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C420C | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#3D3712
Tritanopia (blue-blind)
#004037
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #0c420c; /* rgb */ color: rgb(12, 66, 12); /* oklch */ color: oklch(33.2% 0.100 142.9);
Tailwind
colors: {
custom: {
50: '#55774f',
500: '#0c420c',
950: '#000000',
},
}SCSS
$custom: #0c420c; $custom-light: #55774f; $custom-dark: #000000;
JSON
{
"hex": "#0c420c",
"rgb": {
"r": 12,
"g": 66,
"b": 12
},
"hsl": {
"h": 120,
"s": 69.231,
"l": 15.294
},
"oklch": {
"l": 0.33241,
"c": 0.09953,
"h": 142.9
},
"luminance": 0.04001
}Semantic roles & 50–950 ramp
primary
#0C420C
secondary
#7E2C7E
accent
#3CECEC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78