#227F1A#227F1A
#227F1A is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.159 H 142.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #227F1A |
|---|---|
| RGB | rgb(34, 127, 26) |
| HSL | hsl(115, 66%, 30%) |
| HSV | hsv(115, 80%, 50%) |
| CMYK | cmyk(73.2%, 0%, 79.5%, 50.2%) |
| CIE-LAB | lab(46.44, -46.09, 43.80) |
| CIE-LCH | lch(46.44, 63.59, 136.46°) |
| OKLab | oklab(52.31% -0.1255 0.0982) |
| OKLCH | oklch(52.31% 0.159 142) |
| XYZ | xyz(8.4350, 15.5925, 3.5422) |
| Luminance | 0.1559 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.78
Green
#008000
ΔE00 2.06
Dark Grass Green
#388004
ΔE00 3.45
Forestgreen (CSS)
#228B22
ΔE00 4.27
Darkish Green
#287C37
ΔE00 4.84
Emerald Green
#028F1E
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#227F1A #771A7F
analogous
#547F1A #227F1A #1A7F45
triadic
#227F1A #1A227F #7F1A22
tetradic
#227F1A #1A547F #771A7F #7F451A
square
#227F1A #1A547F #771A7F #7F451A
split-complementary
#227F1A #451A7F #7F1A54
monochromatic
#071905 #144C10 #227F1A #30B224 #49D73C
Accessibility & contrast
On white
5.10
#227F1A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#227F1A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #227F1A
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##227F1A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##227F1A | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827202
Deuteranopia (green-blind)
#786B25
Tritanopia (blue-blind)
#067B6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #227f1a; /* rgb */ color: rgb(34, 127, 26); /* oklch */ color: oklch(52.3% 0.159 142.0);
Tailwind
colors: {
custom: {
50: '#6da55f',
500: '#227f1a',
950: '#000000',
},
}SCSS
$custom: #227f1a; $custom-light: #6da55f; $custom-dark: #000000;
JSON
{
"hex": "#227f1a",
"rgb": {
"r": 34,
"g": 127,
"b": 26
},
"hsl": {
"h": 115.248,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.52312,
"c": 0.15937,
"h": 142
},
"luminance": 0.15593
}Semantic roles & 50–950 ramp
primary
#227F1A
secondary
#AA42B3
accent
#3FE9DB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79