#227E1B#227E1B
#227E1B is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.158 H 142.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #227E1B |
|---|---|
| RGB | rgb(34, 126, 27) |
| HSL | hsl(116, 65%, 30%) |
| HSV | hsv(116, 79%, 49%) |
| CMYK | cmyk(73%, 0%, 78.6%, 50.6%) |
| CIE-LAB | lab(46.10, -45.67, 43.11) |
| CIE-LCH | lch(46.10, 62.81, 136.65°) |
| OKLab | oklab(52.03% -0.1243 0.0969) |
| OKLCH | oklch(52.03% 0.158 142.1) |
| XYZ | xyz(8.3179, 15.3400, 3.5593) |
| Luminance | 0.1534 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.82
Green
#008000
ΔE00 2.27
Dark Grass Green
#388004
ΔE00 3.66
Darkish Green
#287C37
ΔE00 4.60
Forestgreen (CSS)
#228B22
ΔE00 4.62
Emerald Green
#028F1E
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227E1B #771B7E
analogous
#537E1B #227E1B #1B7E46
triadic
#227E1B #1B227E #7E1B22
tetradic
#227E1B #1B537E #771B7E #7E461B
square
#227E1B #1B537E #771B7E #7E461B
split-complementary
#227E1B #461B7E #7E1B53
monochromatic
#071905 #144C10 #227E1B #30B026 #49D63E
Accessibility & contrast
On white
5.16
#227E1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#227E1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227E1B
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227E1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227E1B | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817205
Deuteranopia (green-blind)
#776A26
Tritanopia (blue-blind)
#077A6B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #227e1b; /* rgb */ color: rgb(34, 126, 27); /* oklch */ color: oklch(52.0% 0.158 142.1);
Tailwind
colors: {
custom: {
50: '#6da45f',
500: '#227e1b',
950: '#000000',
},
}SCSS
$custom: #227e1b; $custom-light: #6da45f; $custom-dark: #000000;
JSON
{
"hex": "#227e1b",
"rgb": {
"r": 34,
"g": 126,
"b": 27
},
"hsl": {
"h": 115.758,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.52033,
"c": 0.15763,
"h": 142.1
},
"luminance": 0.15341
}Semantic roles & 50–950 ramp
primary
#227E1B
secondary
#AA43B2
accent
#40E8DC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79