#2F7A1B#2F7A1B
#2F7A1B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.148 H 140.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7A1B |
|---|---|
| RGB | rgb(47, 122, 27) |
| HSL | hsl(107, 64%, 29%) |
| HSV | hsv(107, 78%, 48%) |
| CMYK | cmyk(61.5%, 0%, 77.9%, 52.2%) |
| CIE-LAB | lab(45.08, -41.20, 42.24) |
| CIE-LCH | lch(45.08, 59.01, 134.29°) |
| OKLab | oklab(51.3% -0.1131 0.0949) |
| OKLCH | oklch(51.3% 0.148 140) |
| XYZ | xyz(8.3293, 14.6018, 3.4162) |
| Luminance | 0.1460 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.50
Green
#008000
ΔE00 3.54
Dark Grass Green
#388004
ΔE00 3.55
Darkish Green
#287C37
ΔE00 4.78
Forestgreen (CSS)
#228B22
ΔE00 6.05
Emerald Green
#028F1E
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7A1B #661B7A
analogous
#5F7A1B #2F7A1B #1B7A37
triadic
#2F7A1B #1B2F7A #7A1B2F
tetradic
#2F7A1B #1B5F7A #661B7A #7A371B
square
#2F7A1B #1B5F7A #661B7A #7A371B
split-complementary
#2F7A1B #371B7A #7A1B5F
monochromatic
#0A1906 #1C4810 #2F7A1B #42AC26 #5CD43C
Accessibility & contrast
On white
5.36
#2F7A1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#2F7A1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7A1B
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7A1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7A1B | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#257668
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #2f7a1b; /* rgb */ color: rgb(47, 122, 27); /* oklch */ color: oklch(51.3% 0.148 140.0);
Tailwind
colors: {
custom: {
50: '#71a15f',
500: '#2f7a1b',
950: '#000000',
},
}SCSS
$custom: #2f7a1b; $custom-light: #71a15f; $custom-dark: #000000;
JSON
{
"hex": "#2f7a1b",
"rgb": {
"r": 47,
"g": 122,
"b": 27
},
"hsl": {
"h": 107.368,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.51297,
"c": 0.14766,
"h": 140
},
"luminance": 0.14603
}Semantic roles & 50–950 ramp
primary
#2F7A1B
secondary
#9843AE
accent
#41E7C4
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79