#42802F#42802F
#42802F is a mid, vivid green. Relative luminance 0.168; OKLCH L 54.0% C 0.132 H 139.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #42802F |
|---|---|
| RGB | rgb(66, 128, 47) |
| HSL | hsl(106, 46%, 34%) |
| HSV | hsv(106, 63%, 50%) |
| CMYK | cmyk(48.4%, 0%, 63.3%, 49.8%) |
| CIE-LAB | lab(48.01, -36.15, 36.97) |
| CIE-LCH | lch(48.01, 51.71, 134.36°) |
| OKLab | oklab(53.96% -0.0993 0.0862) |
| OKLCH | oklch(53.96% 0.132 139) |
| XYZ | xyz(10.4786, 16.8011, 5.3796) |
| Luminance | 0.1680 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.44
Dark Grass Green
#388004
ΔE00 4.44
Darkish Green
#287C37
ΔE00 4.46
Forestgreen (CSS)
#228B22
ΔE00 5.15
Fern Green
#548D44
ΔE00 5.54
Green
#008000
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42802F #6D2F80
analogous
#6B802F #42802F #2F8045
triadic
#42802F #2F4280 #802F42
tetradic
#42802F #2F6B80 #6D2F80 #80452F
square
#42802F #2F6B80 #6D2F80 #80452F
split-complementary
#42802F #452F80 #802F6B
monochromatic
#14260E #2B531F #42802F #59AD3F #7BC663
Accessibility & contrast
On white
4.82
#42802F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#42802F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #42802F
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42802F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42802F | 1.00 | 4.82 | 4.36 | 4.82 |
| #FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847526
Deuteranopia (green-blind)
#7B7035
Tritanopia (blue-blind)
#3D7C6F
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #42802f; /* rgb */ color: rgb(66, 128, 47); /* oklch */ color: oklch(54.0% 0.132 139.0);
Tailwind
colors: {
custom: {
50: '#7ca56b',
500: '#42802f',
950: '#000000',
},
}SCSS
$custom: #42802f; $custom-light: #7ca56b; $custom-dark: #000000;
JSON
{
"hex": "#42802f",
"rgb": {
"r": 66,
"g": 128,
"b": 47
},
"hsl": {
"h": 105.926,
"s": 46.286,
"l": 34.314
},
"oklch": {
"l": 0.53963,
"c": 0.13157,
"h": 139
},
"luminance": 0.16802
}Semantic roles & 50–950 ramp
primary
#42802F
secondary
#9A5EAD
accent
#52D6B7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A