#406238#406238
#406238 is a mid, moderate green. Relative luminance 0.101; OKLCH L 45.8% C 0.077 H 139.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).
Color values
| HEX | #406238 |
|---|---|
| RGB | rgb(64, 98, 56) |
| HSL | hsl(109, 27%, 30%) |
| HSV | hsv(109, 43%, 38%) |
| CMYK | cmyk(34.7%, 0%, 42.9%, 61.6%) |
| CIE-LAB | lab(38.04, -21.41, 20.09) |
| CIE-LCH | lch(38.04, 29.36, 136.83°) |
| OKLab | oklab(45.84% -0.0585 0.0495) |
| OKLCH | oklch(45.84% 0.077 139.7) |
| XYZ | xyz(7.1956, 10.1106, 5.3130) |
| Luminance | 0.1011 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Hunter Green
#355E3B
ΔE00 3.22
Pine
#2B5D34
ΔE00 4.00
Forest Green
#2D5A27
ΔE00 4.43
Darkolivegreen
#556B2F
ΔE00 7.01
Spruce
#0A5F38
ΔE00 7.37
Camo Green
#526525
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#406238 #5A3862
analogous
#556238 #406238 #386245
triadic
#406238 #384062 #623840
tetradic
#406238 #385562 #5A3862 #624538
square
#406238 #385562 #5A3862 #624538
split-complementary
#406238 #453862 #623855
monochromatic
#0D140B #273B22 #406238 #59894E #76AA6A
Accessibility & contrast
On white
6.95
#406238 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#406238 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #406238
6.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##406238 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##406238 | 1.00 | 6.95 | 3.02 | 6.95 |
| #FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#645C35
Deuteranopia (green-blind)
#5F583A
Tritanopia (blue-blind)
#3E5F58
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #406238; /* rgb */ color: rgb(64, 98, 56); /* oklch */ color: oklch(45.8% 0.077 139.7);
Tailwind
colors: {
custom: {
50: '#768f6f',
500: '#406238',
950: '#000000',
},
}SCSS
$custom: #406238; $custom-light: #768f6f; $custom-dark: #000000;
JSON
{
"hex": "#406238",
"rgb": {
"r": 64,
"g": 98,
"b": 56
},
"hsl": {
"h": 108.571,
"s": 27.273,
"l": 30.196
},
"oklch": {
"l": 0.45843,
"c": 0.07665,
"h": 139.7
},
"luminance": 0.10111
}Semantic roles & 50–950 ramp
primary
#406238
secondary
#896392
accent
#64C4B1
background
#F7F8F6
surface
#EDF0EC
border
#C8CBC7
text
#080C07
muted
#7B7D7A