#40704F#40704F
#40704F is a mid, moderate green. Relative luminance 0.132; OKLCH L 50.1% C 0.075 H 153.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #40704F |
|---|---|
| RGB | rgb(64, 112, 79) |
| HSL | hsl(139, 27%, 35%) |
| HSV | hsv(139, 43%, 44%) |
| CMYK | cmyk(42.9%, 0%, 29.5%, 56.1%) |
| CIE-LAB | lab(43.13, -24.29, 13.36) |
| CIE-LCH | lch(43.13, 27.72, 151.19°) |
| OKLab | oklab(50.11% -0.0665 0.0339) |
| OKLCH | oklch(50.11% 0.075 153) |
| XYZ | xyz(9.3192, 13.2422, 9.4606) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Hunter Green
#355E3B
ΔE00 6.37
Pine
#2B5D34
ΔE00 7.44
Spruce
#0A5F38
ΔE00 8.11
Dark Sage
#598556
ΔE00 8.97
Darkish Green
#287C37
ΔE00 9.10
Dark Sea Green
#11875D
ΔE00 9.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40704F #704061
analogous
#497040 #40704F #407067
triadic
#40704F #4F4070 #704F40
tetradic
#40704F #404970 #704061 #706740
square
#40704F #404970 #704061 #706740
split-complementary
#40704F #674070 #704049
monochromatic
#132218 #2A4934 #40704F #56976A #78B28A
Accessibility & contrast
On white
5.76
#40704F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#40704F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #40704F
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40704F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40704F | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#70694D
Deuteranopia (green-blind)
#696451
Tritanopia (blue-blind)
#376F67
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #40704f; /* rgb */ color: rgb(64, 112, 79); /* oklch */ color: oklch(50.1% 0.075 153.0);
Tailwind
colors: {
custom: {
50: '#779980',
500: '#40704f',
950: '#000000',
},
}SCSS
$custom: #40704f; $custom-light: #779980; $custom-dark: #000000;
JSON
{
"hex": "#40704f",
"rgb": {
"r": 64,
"g": 112,
"b": 79
},
"hsl": {
"h": 138.75,
"s": 27.273,
"l": 34.51
},
"oklch": {
"l": 0.50115,
"c": 0.07466,
"h": 153
},
"luminance": 0.13243
}Semantic roles & 50–950 ramp
primary
#40704F
secondary
#9D6F8F
accent
#64A6C4
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090E0A
muted
#7B7E7C