#2B7D1F#2B7D1F
#2B7D1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.151 H 141.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2B7D1F |
|---|---|
| RGB | rgb(43, 125, 31) |
| HSL | hsl(112, 60%, 31%) |
| HSV | hsv(112, 75%, 49%) |
| CMYK | cmyk(65.6%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(46.01, -43.03, 41.60) |
| CIE-LCH | lch(46.01, 59.85, 135.97°) |
| OKLab | oklab(52.04% -0.1175 0.0942) |
| OKLCH | oklch(52.04% 0.151 141.3) |
| XYZ | xyz(8.5768, 15.2789, 3.7932) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.85
Green
#008000
ΔE00 3.03
Dark Grass Green
#388004
ΔE00 3.61
Darkish Green
#287C37
ΔE00 4.25
Forestgreen (CSS)
#228B22
ΔE00 4.98
Emerald Green
#028F1E
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B7D1F #711F7D
analogous
#5A7D1F #2B7D1F #1F7D42
triadic
#2B7D1F #1F2B7D #7D1F2B
tetradic
#2B7D1F #1F5A7D #711F7D #7D421F
square
#2B7D1F #1F5A7D #711F7D #7D421F
split-complementary
#2B7D1F #421F7D #7D1F5A
monochromatic
#091B07 #1A4C13 #2B7D1F #3CAE2B #57D145
Accessibility & contrast
On white
5.18
#2B7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#2B7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B7D1F
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B7D1F | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#1D796B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2b7d1f; /* rgb */ color: rgb(43, 125, 31); /* oklch */ color: oklch(52.0% 0.151 141.3);
Tailwind
colors: {
custom: {
50: '#70a361',
500: '#2b7d1f',
950: '#000000',
},
}SCSS
$custom: #2b7d1f; $custom-light: #70a361; $custom-dark: #000000;
JSON
{
"hex": "#2b7d1f",
"rgb": {
"r": 43,
"g": 125,
"b": 31
},
"hsl": {
"h": 112.34,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.5204,
"c": 0.15064,
"h": 141.3
},
"luminance": 0.1528
}Semantic roles & 50–950 ramp
primary
#2B7D1F
secondary
#A348B0
accent
#44E3CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79