#227F42#227F42
#227F42 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.127 H 150.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #227F42 |
|---|---|
| RGB | rgb(34, 127, 66) |
| HSL | hsl(141, 58%, 32%) |
| HSV | hsv(141, 73%, 50%) |
| CMYK | cmyk(73.2%, 0%, 48%, 50.2%) |
| CIE-LAB | lab(46.86, -41.10, 25.53) |
| CIE-LCH | lch(46.86, 48.39, 148.15°) |
| OKLab | oklab(52.8% -0.1106 0.0625) |
| OKLCH | oklch(52.8% 0.127 150.5) |
| XYZ | xyz(9.2317, 15.9111, 7.7378) |
| Luminance | 0.1591 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Jungle Green
#048243
ΔE00 1.65
Darkish Green
#287C37
ΔE00 2.37
Sea Green
#2E8B57
ΔE00 5.27
Dark Sea Green
#11875D
ΔE00 6.25
Tree Green
#2A7E19
ΔE00 7.10
Dark Sage
#598556
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227F42 #7F225F
analogous
#317F22 #227F42 #227F71
triadic
#227F42 #42227F #7F4222
tetradic
#227F42 #22317F #7F225F #7F7122
square
#227F42 #22317F #7F225F #7F7122
split-complementary
#227F42 #71227F #7F2231
monochromatic
#081E10 #154F29 #227F42 #2FAF5B #4CCF79
Accessibility & contrast
On white
5.02
#227F42 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#227F42 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227F42
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227F42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227F42 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80743D
Deuteranopia (green-blind)
#746C46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #227f42; /* rgb */ color: rgb(34, 127, 66); /* oklch */ color: oklch(52.8% 0.127 150.5);
Tailwind
colors: {
custom: {
50: '#6ba577',
500: '#227f42',
950: '#000000',
},
}SCSS
$custom: #227f42; $custom-light: #6ba577; $custom-dark: #000000;
JSON
{
"hex": "#227f42",
"rgb": {
"r": 34,
"g": 127,
"b": 66
},
"hsl": {
"h": 140.645,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.52798,
"c": 0.1271,
"h": 150.5
},
"luminance": 0.15912
}Semantic roles & 50–950 ramp
primary
#227F42
secondary
#B24B8E
accent
#47ACE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B