#28512F#28512F
#28512F is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.5% C 0.073 H 147.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).
Color values
| HEX | #28512F |
|---|---|
| RGB | rgb(40, 81, 47) |
| HSL | hsl(130, 34%, 24%) |
| HSV | hsv(130, 51%, 32%) |
| CMYK | cmyk(50.6%, 0%, 42%, 68.2%) |
| CIE-LAB | lab(30.74, -22.88, 15.67) |
| CIE-LCH | lch(30.74, 27.73, 145.60°) |
| OKLab | oklab(39.5% -0.0622 0.039) |
| OKLCH | oklch(39.5% 0.073 147.9) |
| XYZ | xyz(4.3303, 6.5409, 3.7231) |
| Luminance | 0.0654 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine
#2B5D34
ΔE00 4.14
Hunter Green
#355E3B
ΔE00 4.35
Pine Green
#0A481E
ΔE00 4.78
Evergreen
#05472A
ΔE00 5.07
Forest Green
#2D5A27
ΔE00 5.13
Spruce
#0A5F38
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28512F #51284A
analogous
#355128 #28512F #285143
triadic
#28512F #2F2851 #512F28
tetradic
#28512F #283551 #51284A #514328
square
#28512F #283551 #51284A #514328
split-complementary
#28512F #432851 #512835
monochromatic
#0A140C #142817 #28512F #3C7A47 #50A35F
Accessibility & contrast
On white
9.10
#28512F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#28512F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28512F
9.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28512F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28512F | 1.00 | 9.10 | 2.31 | 9.10 |
| #FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#524B2D
Deuteranopia (green-blind)
#4C4731
Tritanopia (blue-blind)
#214F48
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #28512f; /* rgb */ color: rgb(40, 81, 47); /* oklch */ color: oklch(39.5% 0.073 147.9);
Tailwind
colors: {
custom: {
50: '#658268',
500: '#28512f',
950: '#000000',
},
}SCSS
$custom: #28512f; $custom-light: #658268; $custom-dark: #000000;
JSON
{
"hex": "#28512f",
"rgb": {
"r": 40,
"g": 81,
"b": 47
},
"hsl": {
"h": 130.244,
"s": 33.884,
"l": 23.725
},
"oklch": {
"l": 0.395,
"c": 0.07338,
"h": 147.9
},
"luminance": 0.06541
}Semantic roles & 50–950 ramp
primary
#28512F
secondary
#84517B
accent
#5EB8CA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A06
muted
#7A7C7A