#2B7F18#2B7F18
#2B7F18 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.157 H 140.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2B7F18 |
|---|---|
| RGB | rgb(43, 127, 24) |
| HSL | hsl(109, 68%, 30%) |
| HSV | hsv(109, 81%, 50%) |
| CMYK | cmyk(66.1%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(46.65, -44.30, 44.77) |
| CIE-LCH | lch(46.65, 62.98, 134.69°) |
| OKLab | oklab(52.56% -0.1213 0.0998) |
| OKLCH | oklch(52.56% 0.157 140.6) |
| XYZ | xyz(8.7501, 15.7574, 3.4443) |
| Luminance | 0.1576 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.42
Green
#008000
ΔE00 2.33
Dark Grass Green
#388004
ΔE00 2.61
Forestgreen (CSS)
#228B22
ΔE00 4.32
Darkish Green
#287C37
ΔE00 5.32
Emerald Green
#028F1E
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B7F18 #6C187F
analogous
#5F7F18 #2B7F18 #187F39
triadic
#2B7F18 #182B7F #7F182B
tetradic
#2B7F18 #185F7F #6C187F #7F3918
square
#2B7F18 #185F7F #6C187F #7F3918
split-complementary
#2B7F18 #39187F #7F185F
monochromatic
#091A05 #1A4C0E #2B7F18 #3CB222 #56D938
Accessibility & contrast
On white
5.06
#2B7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2B7F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B7F18
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B7F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B7F18 | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#1D7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2b7f18; /* rgb */ color: rgb(43, 127, 24); /* oklch */ color: oklch(52.6% 0.157 140.6);
Tailwind
colors: {
custom: {
50: '#71a55e',
500: '#2b7f18',
950: '#000000',
},
}SCSS
$custom: #2b7f18; $custom-light: #71a55e; $custom-dark: #000000;
JSON
{
"hex": "#2b7f18",
"rgb": {
"r": 43,
"g": 127,
"b": 24
},
"hsl": {
"h": 108.932,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.52556,
"c": 0.15712,
"h": 140.6
},
"luminance": 0.15758
}Semantic roles & 50–950 ramp
primary
#2B7F18
secondary
#9E3FB3
accent
#3DEBCB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79