#28512C#28512C
#28512C is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.4% C 0.077 H 146.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).
Color values
| HEX | #28512C |
|---|---|
| RGB | rgb(40, 81, 44) |
| HSL | hsl(126, 34%, 24%) |
| HSV | hsv(126, 51%, 32%) |
| CMYK | cmyk(50.6%, 0%, 45.7%, 68.2%) |
| CIE-LAB | lab(30.68, -23.44, 17.41) |
| CIE-LCH | lch(30.68, 29.20, 143.40°) |
| OKLab | oklab(39.44% -0.0637 0.043) |
| OKLCH | oklch(39.44% 0.077 146) |
| XYZ | xyz(4.2719, 6.5175, 3.4153) |
| Luminance | 0.0652 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine
#2B5D34
ΔE00 3.95
Forest Green
#2D5A27
ΔE00 4.39
Pine Green
#0A481E
ΔE00 4.43
Hunter Green
#355E3B
ΔE00 4.49
Evergreen
#05472A
ΔE00 5.47
Spruce
#0A5F38
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28512C #51284D
analogous
#385128 #28512C #285140
triadic
#28512C #2C2851 #512C28
tetradic
#28512C #283851 #51284D #514028
square
#28512C #283851 #51284D #514028
split-complementary
#28512C #402851 #512838
monochromatic
#0A140B #142816 #28512C #3C7A42 #50A359
Accessibility & contrast
On white
9.12
#28512C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#28512C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28512C
9.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28512C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28512C | 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)
#524B29
Deuteranopia (green-blind)
#4C472E
Tritanopia (blue-blind)
#224F48
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #28512c; /* rgb */ color: rgb(40, 81, 44); /* oklch */ color: oklch(39.4% 0.077 146.0);
Tailwind
colors: {
custom: {
50: '#658265',
500: '#28512c',
950: '#000000',
},
}SCSS
$custom: #28512c; $custom-light: #658265; $custom-dark: #000000;
JSON
{
"hex": "#28512c",
"rgb": {
"r": 40,
"g": 81,
"b": 44
},
"hsl": {
"h": 125.854,
"s": 33.884,
"l": 23.725
},
"oklch": {
"l": 0.39437,
"c": 0.07684,
"h": 146
},
"luminance": 0.06518
}Semantic roles & 50–950 ramp
primary
#28512C
secondary
#84517F
accent
#5EBFCA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A05
muted
#7A7C7A