#22731F#22731F
#22731F is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.142 H 142.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #22731F |
|---|---|
| RGB | rgb(34, 115, 31) |
| HSL | hsl(118, 58%, 29%) |
| HSV | hsv(118, 73%, 45%) |
| CMYK | cmyk(70.4%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(42.31, -41.37, 37.70) |
| CIE-LCH | lch(42.31, 55.97, 137.66°) |
| OKLab | oklab(48.9% -0.1125 0.0861) |
| OKLCH | oklch(48.9% 0.142 142.6) |
| XYZ | xyz(7.0373, 12.6997, 3.3765) |
| Luminance | 0.1270 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.30
Darkish Green
#287C37
ΔE00 4.43
Darkgreen
#006400
ΔE00 5.50
Green
#008000
ΔE00 5.56
Dark Grass Green
#388004
ΔE00 6.60
Jungle Green
#048243
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22731F #701F73
analogous
#4C731F #22731F #1F7346
triadic
#22731F #1F2273 #731F22
tetradic
#22731F #1F4C73 #701F73 #73461F
square
#22731F #1F4C73 #701F73 #73461F
split-complementary
#22731F #461F73 #731F4C
monochromatic
#071806 #144312 #22731F #30A32C #46CC41
Accessibility & contrast
On white
5.93
#22731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#22731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #22731F
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22731F | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#0E6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #22731f; /* rgb */ color: rgb(34, 115, 31); /* oklch */ color: oklch(48.9% 0.142 142.6);
Tailwind
colors: {
custom: {
50: '#6a9c60',
500: '#22731f',
950: '#000000',
},
}SCSS
$custom: #22731f; $custom-light: #6a9c60; $custom-dark: #000000;
JSON
{
"hex": "#22731f",
"rgb": {
"r": 34,
"g": 115,
"b": 31
},
"hsl": {
"h": 117.857,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.489,
"c": 0.14167,
"h": 142.6
},
"luminance": 0.127
}Semantic roles & 50–950 ramp
primary
#22731F
secondary
#A347A7
accent
#47E1DB
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79