#227D1B#227D1B
#227D1B is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.156 H 142.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #227D1B |
|---|---|
| RGB | rgb(34, 125, 27) |
| HSL | hsl(116, 64%, 30%) |
| HSV | hsv(116, 78%, 49%) |
| CMYK | cmyk(72.8%, 0%, 78.4%, 51%) |
| CIE-LAB | lab(45.75, -45.32, 42.77) |
| CIE-LCH | lch(45.75, 62.32, 136.65°) |
| OKLab | oklab(51.75% -0.1234 0.0962) |
| OKLCH | oklch(51.75% 0.156 142.1) |
| XYZ | xyz(8.1907, 15.0856, 3.5168) |
| Luminance | 0.1509 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.94
Green
#008000
ΔE00 2.44
Dark Grass Green
#388004
ΔE00 3.81
Darkish Green
#287C37
ΔE00 4.49
Forestgreen (CSS)
#228B22
ΔE00 4.97
Emerald Green
#028F1E
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227D1B #761B7D
analogous
#537D1B #227D1B #1B7D45
triadic
#227D1B #1B227D #7D1B22
tetradic
#227D1B #1B537D #761B7D #7D451B
square
#227D1B #1B537D #761B7D #7D451B
split-complementary
#227D1B #451B7D #7D1B53
monochromatic
#071905 #144B10 #227D1B #30AF26 #48D53D
Accessibility & contrast
On white
5.23
#227D1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#227D1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227D1B
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227D1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227D1B | 1.00 | 5.23 | 4.02 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807105
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#08796A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #227d1b; /* rgb */ color: rgb(34, 125, 27); /* oklch */ color: oklch(51.7% 0.156 142.1);
Tailwind
colors: {
custom: {
50: '#6ca45f',
500: '#227d1b',
950: '#000000',
},
}SCSS
$custom: #227d1b; $custom-light: #6ca45f; $custom-dark: #000000;
JSON
{
"hex": "#227d1b",
"rgb": {
"r": 34,
"g": 125,
"b": 27
},
"hsl": {
"h": 115.714,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.51746,
"c": 0.15644,
"h": 142.1
},
"luminance": 0.15086
}Semantic roles & 50–950 ramp
primary
#227D1B
secondary
#A943B1
accent
#40E7DC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79