#2F7F1F#2F7F1F
#2F7F1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.151 H 140.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7F1F |
|---|---|
| RGB | rgb(47, 127, 31) |
| HSL | hsl(110, 61%, 31%) |
| HSV | hsv(110, 76%, 50%) |
| CMYK | cmyk(63%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.82, -42.80, 42.46) |
| CIE-LCH | lch(46.82, 60.28, 135.23°) |
| OKLab | oklab(52.74% -0.1172 0.096) |
| OKLCH | oklch(52.74% 0.151 140.7) |
| XYZ | xyz(9.0086, 15.8812, 3.8867) |
| Luminance | 0.1588 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.76
Green
#008000
ΔE00 2.99
Dark Grass Green
#388004
ΔE00 3.05
Forestgreen (CSS)
#228B22
ΔE00 4.31
Darkish Green
#287C37
ΔE00 4.69
Emerald Green
#028F1E
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7F1F #6F1F7F
analogous
#5F7F1F #2F7F1F #1F7F3F
triadic
#2F7F1F #1F2F7F #7F1F2F
tetradic
#2F7F1F #1F5F7F #6F1F7F #7F3F1F
square
#2F7F1F #1F5F7F #6F1F7F #7F3F1F
split-complementary
#2F7F1F #3F1F7F #7F1F5F
monochromatic
#0B1D07 #1D4E13 #2F7F1F #41B02B #5ED246
Accessibility & contrast
On white
5.03
#2F7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#2F7F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7F1F
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7F1F | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#796C29
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2f7f1f; /* rgb */ color: rgb(47, 127, 31); /* oklch */ color: oklch(52.7% 0.151 140.7);
Tailwind
colors: {
custom: {
50: '#72a561',
500: '#2f7f1f',
950: '#000000',
},
}SCSS
$custom: #2f7f1f; $custom-light: #72a561; $custom-dark: #000000;
JSON
{
"hex": "#2f7f1f",
"rgb": {
"r": 47,
"g": 127,
"b": 31
},
"hsl": {
"h": 110,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52739,
"c": 0.15145,
"h": 140.7
},
"luminance": 0.15882
}Semantic roles & 50–950 ramp
primary
#2F7F1F
secondary
#A048B2
accent
#44E4C9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A