#0C5F21#0C5F21
#0C5F21 is a dark, vivid green. Relative luminance 0.084; OKLCH L 42.5% C 0.121 H 146.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #0C5F21 |
|---|---|
| RGB | rgb(12, 95, 33) |
| HSL | hsl(135, 78%, 21%) |
| HSV | hsv(135, 87%, 37%) |
| CMYK | cmyk(87.4%, 0%, 65.3%, 62.7%) |
| CIE-LAB | lab(34.75, -37.61, 28.34) |
| CIE-LCH | lch(34.75, 47.09, 143.00°) |
| OKLab | oklab(42.5% -0.1011 0.0666) |
| OKLCH | oklch(42.5% 0.121 146.6) |
| XYZ | xyz(4.5180, 8.3718, 2.8164) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Deep Green
#02590F
ΔE00 2.97
Forest
#0B5509
ΔE00 4.22
Forest Green
#2D5A27
ΔE00 4.29
Darkgreen
#006400
ΔE00 5.08
Pine
#2B5D34
ΔE00 5.28
Spruce
#0A5F38
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C5F21 #5F0C4A
analogous
#205F0C #0C5F21 #0C5F4A
triadic
#0C5F21 #210C5F #5F210C
tetradic
#0C5F21 #0C205F #5F0C4A #5F4A0C
square
#0C5F21 #0C205F #5F0C4A #5F4A0C
split-complementary
#0C5F21 #4A0C5F #5F0C20
monochromatic
#031B09 #05290E #0C5F21 #139534 #1ACC47
Accessibility & contrast
On white
7.85
#0C5F21 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#0C5F21 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C5F21
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C5F21 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C5F21 | 1.00 | 7.85 | 2.67 | 7.85 |
| #FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#60551A
Deuteranopia (green-blind)
#574F26
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #0c5f21; /* rgb */ color: rgb(12, 95, 33); /* oklch */ color: oklch(42.5% 0.121 146.6);
Tailwind
colors: {
custom: {
50: '#5d8d5f',
500: '#0c5f21',
950: '#000000',
},
}SCSS
$custom: #0c5f21; $custom-light: #5d8d5f; $custom-dark: #000000;
JSON
{
"hex": "#0c5f21",
"rgb": {
"r": 12,
"g": 95,
"b": 33
},
"hsl": {
"h": 135.181,
"s": 77.57,
"l": 20.98
},
"oklch": {
"l": 0.42502,
"c": 0.12111,
"h": 146.6
},
"luminance": 0.08372
}Semantic roles & 50–950 ramp
primary
#0C5F21
secondary
#992D7E
accent
#34C3F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79