#227F38#227F38
#227F38 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.137 H 147.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #227F38 |
|---|---|
| RGB | rgb(34, 127, 56) |
| HSL | hsl(134, 58%, 32%) |
| HSV | hsv(134, 73%, 50%) |
| CMYK | cmyk(73.2%, 0%, 55.9%, 50.2%) |
| CIE-LAB | lab(46.72, -42.75, 30.70) |
| CIE-LCH | lch(46.72, 52.63, 144.32°) |
| OKLab | oklab(52.63% -0.1152 0.0736) |
| OKLCH | oklch(52.63% 0.137 147.4) |
| XYZ | xyz(8.9622, 15.8034, 6.3186) |
| Luminance | 0.1580 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.15
Jungle Green
#048243
ΔE00 2.80
Tree Green
#2A7E19
ΔE00 5.06
Forestgreen (CSS)
#228B22
ΔE00 6.26
Green
#008000
ΔE00 6.40
Sea Green
#2E8B57
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227F38 #7F2269
analogous
#3A7F22 #227F38 #227F67
triadic
#227F38 #38227F #7F3822
tetradic
#227F38 #223A7F #7F2269 #7F6722
square
#227F38 #223A7F #7F2269 #7F6722
split-complementary
#227F38 #67227F #7F223A
monochromatic
#081E0D #154F23 #227F38 #2FAF4D #4CCF6B
Accessibility & contrast
On white
5.05
#227F38 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#227F38 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227F38
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227F38 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227F38 | 1.00 | 5.05 | 4.16 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817332
Deuteranopia (green-blind)
#756C3D
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #227f38; /* rgb */ color: rgb(34, 127, 56); /* oklch */ color: oklch(52.6% 0.137 147.4);
Tailwind
colors: {
custom: {
50: '#6ba570',
500: '#227f38',
950: '#000000',
},
}SCSS
$custom: #227f38; $custom-light: #6ba570; $custom-dark: #000000;
JSON
{
"hex": "#227f38",
"rgb": {
"r": 34,
"g": 127,
"b": 56
},
"hsl": {
"h": 134.194,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.52634,
"c": 0.13667,
"h": 147.4
},
"luminance": 0.15804
}Semantic roles & 50–950 ramp
primary
#227F38
secondary
#B24B99
accent
#47BDE1
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#080F07
muted
#7A7F7A