#2F7B1F#2F7B1F
#2F7B1F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.146 H 140.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7B1F |
|---|---|
| RGB | rgb(47, 123, 31) |
| HSL | hsl(110, 60%, 30%) |
| HSV | hsv(110, 75%, 48%) |
| CMYK | cmyk(61.8%, 0%, 74.8%, 51.8%) |
| CIE-LAB | lab(45.45, -41.27, 41.07) |
| CIE-LCH | lch(45.45, 58.22, 135.14°) |
| OKLab | oklab(51.61% -0.113 0.0931) |
| OKLCH | oklch(51.61% 0.146 140.5) |
| XYZ | xyz(8.5022, 14.8684, 3.7179) |
| Luminance | 0.1487 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.37
Green
#008000
ΔE00 3.57
Dark Grass Green
#388004
ΔE00 3.73
Darkish Green
#287C37
ΔE00 4.30
Forestgreen (CSS)
#228B22
ΔE00 5.71
Emerald Green
#028F1E
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7B1F #6B1F7B
analogous
#5D7B1F #2F7B1F #1F7B3D
triadic
#2F7B1F #1F2F7B #7B1F2F
tetradic
#2F7B1F #1F5D7B #6B1F7B #7B3D1F
square
#2F7B1F #1F5D7B #6B1F7B #7B3D1F
split-complementary
#2F7B1F #3D1F7B #7B1F5D
monochromatic
#0A1906 #1C4A13 #2F7B1F #42AC2B #5DD044
Accessibility & contrast
On white
5.28
#2F7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#2F7B1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7B1F
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7B1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7B1F | 1.00 | 5.28 | 3.97 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#247769
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2f7b1f; /* rgb */ color: rgb(47, 123, 31); /* oklch */ color: oklch(51.6% 0.146 140.5);
Tailwind
colors: {
custom: {
50: '#71a261',
500: '#2f7b1f',
950: '#000000',
},
}SCSS
$custom: #2f7b1f; $custom-light: #71a261; $custom-dark: #000000;
JSON
{
"hex": "#2f7b1f",
"rgb": {
"r": 47,
"g": 123,
"b": 31
},
"hsl": {
"h": 109.565,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.51611,
"c": 0.14643,
"h": 140.5
},
"luminance": 0.14869
}Semantic roles & 50–950 ramp
primary
#2F7B1F
secondary
#9C48AE
accent
#45E3C7
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79