#228A1B#228A1B
#228A1B is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.172 H 142.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #228A1B |
|---|---|
| RGB | rgb(34, 138, 27) |
| HSL | hsl(116, 67%, 32%) |
| HSV | hsv(116, 80%, 54%) |
| CMYK | cmyk(75.4%, 0%, 80.4%, 45.9%) |
| CIE-LAB | lab(50.21, -49.78, 47.11) |
| CIE-LCH | lch(50.21, 68.53, 136.58°) |
| OKLab | oklab(55.45% -0.1355 0.1052) |
| OKLCH | oklch(55.45% 0.172 142.2) |
| XYZ | xyz(9.9454, 18.5950, 4.1018) |
| Luminance | 0.1860 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.80
Emerald Green
#028F1E
ΔE00 2.03
True Green
#089404
ΔE00 3.84
Green
#008000
ΔE00 4.03
Irish Green
#019529
ΔE00 4.07
Tree Green
#2A7E19
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228A1B #831B8A
analogous
#5A8A1B #228A1B #1B8A4B
triadic
#228A1B #1B228A #8A1B22
tetradic
#228A1B #1B5A8A #831B8A #8A4B1B
square
#228A1B #1B5A8A #831B8A #8A4B1B
split-complementary
#228A1B #4B1B8A #8A1B5A
monochromatic
#092407 #155711 #228A1B #2FBD25 #4EDB45
Accessibility & contrast
On white
4.45
#228A1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#228A1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228A1B
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228A1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228A1B | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#827428
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #228a1b; /* rgb */ color: rgb(34, 138, 27); /* oklch */ color: oklch(55.4% 0.172 142.2);
Tailwind
colors: {
custom: {
50: '#6fad61',
500: '#228a1b',
950: '#000000',
},
}SCSS
$custom: #228a1b; $custom-light: #6fad61; $custom-dark: #000000;
JSON
{
"hex": "#228a1b",
"rgb": {
"r": 34,
"g": 138,
"b": 27
},
"hsl": {
"h": 116.216,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.55449,
"c": 0.17151,
"h": 142.2
},
"luminance": 0.18596
}Semantic roles & 50–950 ramp
primary
#228A1B
secondary
#B445BC
accent
#3EEADF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A