#2F7E1B#2F7E1B
#2F7E1B is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.153 H 140.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7E1B |
|---|---|
| RGB | rgb(47, 126, 27) |
| HSL | hsl(108, 65%, 30%) |
| HSV | hsv(108, 79%, 49%) |
| CMYK | cmyk(62.7%, 0%, 78.6%, 50.6%) |
| CIE-LAB | lab(46.45, -42.73, 43.58) |
| CIE-LCH | lch(46.45, 61.03, 134.43°) |
| OKLab | oklab(52.43% -0.1172 0.0977) |
| OKLCH | oklch(52.43% 0.153 140.2) |
| XYZ | xyz(8.8306, 15.6044, 3.5833) |
| Luminance | 0.1560 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.47
Dark Grass Green
#388004
ΔE00 2.72
Green
#008000
ΔE00 2.83
Forestgreen (CSS)
#228B22
ΔE00 4.68
Darkish Green
#287C37
ΔE00 5.04
Emerald Green
#028F1E
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7E1B #6A1B7E
analogous
#607E1B #2F7E1B #1B7E39
triadic
#2F7E1B #1B2F7E #7E1B2F
tetradic
#2F7E1B #1B607E #6A1B7E #7E391B
square
#2F7E1B #1B607E #6A1B7E #7E391B
split-complementary
#2F7E1B #391B7E #7E1B60
monochromatic
#091905 #1C4C10 #2F7E1B #42B026 #5CD63E
Accessibility & contrast
On white
5.10
#2F7E1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#2F7E1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7E1B
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7E1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7E1B | 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)
#827205
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#247A6B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2f7e1b; /* rgb */ color: rgb(47, 126, 27); /* oklch */ color: oklch(52.4% 0.153 140.2);
Tailwind
colors: {
custom: {
50: '#72a45f',
500: '#2f7e1b',
950: '#000000',
},
}SCSS
$custom: #2f7e1b; $custom-light: #72a45f; $custom-dark: #000000;
JSON
{
"hex": "#2f7e1b",
"rgb": {
"r": 47,
"g": 126,
"b": 27
},
"hsl": {
"h": 107.879,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.52427,
"c": 0.15262,
"h": 140.2
},
"luminance": 0.15605
}Semantic roles & 50–950 ramp
primary
#2F7E1B
secondary
#9B43B2
accent
#40E8C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79