#227E42#227E42
#227E42 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.126 H 150.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #227E42 |
|---|---|
| RGB | rgb(34, 126, 66) |
| HSL | hsl(141, 58%, 31%) |
| HSV | hsv(141, 73%, 49%) |
| CMYK | cmyk(73%, 0%, 47.6%, 50.6%) |
| CIE-LAB | lab(46.52, -40.71, 25.10) |
| CIE-LCH | lch(46.52, 47.82, 148.34°) |
| OKLab | oklab(52.52% -0.1096 0.0615) |
| OKLCH | oklch(52.52% 0.126 150.7) |
| XYZ | xyz(9.1032, 15.6541, 7.6950) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Jungle Green
#048243
ΔE00 1.88
Darkish Green
#287C37
ΔE00 2.38
Sea Green
#2E8B57
ΔE00 5.50
Dark Sea Green
#11875D
ΔE00 6.29
Tree Green
#2A7E19
ΔE00 7.24
Dark Sage
#598556
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227E42 #7E225E
analogous
#307E22 #227E42 #227E70
triadic
#227E42 #42227E #7E4222
tetradic
#227E42 #22307E #7E225E #7E7022
square
#227E42 #22307E #7E225E #7E7022
split-complementary
#227E42 #70227E #7E2230
monochromatic
#081E10 #154E29 #227E42 #2FAE5B #4CCF79
Accessibility & contrast
On white
5.08
#227E42 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#227E42 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227E42
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227E42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227E42 | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F733D
Deuteranopia (green-blind)
#736B46
Tritanopia (blue-blind)
#007C70
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #227e42; /* rgb */ color: rgb(34, 126, 66); /* oklch */ color: oklch(52.5% 0.126 150.7);
Tailwind
colors: {
custom: {
50: '#6ba477',
500: '#227e42',
950: '#000000',
},
}SCSS
$custom: #227e42; $custom-light: #6ba477; $custom-dark: #000000;
JSON
{
"hex": "#227e42",
"rgb": {
"r": 34,
"g": 126,
"b": 66
},
"hsl": {
"h": 140.87,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.52517,
"c": 0.1257,
"h": 150.7
},
"luminance": 0.15655
}Semantic roles & 50–950 ramp
primary
#227E42
secondary
#B14B8D
accent
#47ABE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B