#28731F#28731F
#28731F is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.139 H 141.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #28731F |
|---|---|
| RGB | rgb(40, 115, 31) |
| HSL | hsl(114, 58%, 29%) |
| HSV | hsv(114, 73%, 45%) |
| CMYK | cmyk(65.2%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(42.48, -39.98, 37.92) |
| CIE-LCH | lch(42.48, 55.11, 136.51°) |
| OKLab | oklab(49.09% -0.1091 0.0866) |
| OKLCH | oklch(49.09% 0.139 141.6) |
| XYZ | xyz(7.2528, 12.8108, 3.3866) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.15
Darkish Green
#287C37
ΔE00 4.55
Green
#008000
ΔE00 5.59
Darkgreen
#006400
ΔE00 5.66
Dark Grass Green
#388004
ΔE00 6.29
Jungle Green
#048243
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28731F #6A1F73
analogous
#52731F #28731F #1F7340
triadic
#28731F #1F2873 #731F28
tetradic
#28731F #1F5273 #6A1F73 #73401F
square
#28731F #1F5273 #6A1F73 #73401F
split-complementary
#28731F #401F73 #731F52
monochromatic
#081806 #174312 #28731F #39A32C #50CC41
Accessibility & contrast
On white
5.89
#28731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#28731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #28731F
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28731F | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6D6227
Tritanopia (blue-blind)
#1B6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #28731f; /* rgb */ color: rgb(40, 115, 31); /* oklch */ color: oklch(49.1% 0.139 141.6);
Tailwind
colors: {
custom: {
50: '#6c9c60',
500: '#28731f',
950: '#000000',
},
}SCSS
$custom: #28731f; $custom-light: #6c9c60; $custom-dark: #000000;
JSON
{
"hex": "#28731f",
"rgb": {
"r": 40,
"g": 115,
"b": 31
},
"hsl": {
"h": 113.571,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.49088,
"c": 0.13926,
"h": 141.6
},
"luminance": 0.12812
}Semantic roles & 50–950 ramp
primary
#28731F
secondary
#9D47A7
accent
#47E1D0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79