#2F7C1F#2F7C1F
#2F7C1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.148 H 140.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7C1F |
|---|---|
| RGB | rgb(47, 124, 31) |
| HSL | hsl(110, 60%, 30%) |
| HSV | hsv(110, 75%, 49%) |
| CMYK | cmyk(62.1%, 0%, 75%, 51.4%) |
| CIE-LAB | lab(45.80, -41.66, 41.42) |
| CIE-LCH | lch(45.80, 58.74, 135.16°) |
| OKLab | oklab(51.89% -0.1141 0.0938) |
| OKLCH | oklch(51.89% 0.148 140.6) |
| XYZ | xyz(8.6269, 15.1178, 3.7595) |
| Luminance | 0.1512 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.08
Green
#008000
ΔE00 3.38
Dark Grass Green
#388004
ΔE00 3.52
Darkish Green
#287C37
ΔE00 4.36
Forestgreen (CSS)
#228B22
ΔE00 5.36
Emerald Green
#028F1E
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7C1F #6C1F7C
analogous
#5E7C1F #2F7C1F #1F7C3D
triadic
#2F7C1F #1F2F7C #7C1F2F
tetradic
#2F7C1F #1F5E7C #6C1F7C #7C3D1F
square
#2F7C1F #1F5E7C #6C1F7C #7C3D1F
split-complementary
#2F7C1F #3D1F7C #7C1F5E
monochromatic
#0A1A07 #1C4B13 #2F7C1F #42AD2B #5DD045
Accessibility & contrast
On white
5.22
#2F7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#2F7C1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7C1F
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7C1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7C1F | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#24786A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2f7c1f; /* rgb */ color: rgb(47, 124, 31); /* oklch */ color: oklch(51.9% 0.148 140.6);
Tailwind
colors: {
custom: {
50: '#72a361',
500: '#2f7c1f',
950: '#000000',
},
}SCSS
$custom: #2f7c1f; $custom-light: #72a361; $custom-dark: #000000;
JSON
{
"hex": "#2f7c1f",
"rgb": {
"r": 47,
"g": 124,
"b": 31
},
"hsl": {
"h": 109.677,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.51894,
"c": 0.14769,
"h": 140.6
},
"luminance": 0.15119
}Semantic roles & 50–950 ramp
primary
#2F7C1F
secondary
#9D48AF
accent
#45E3C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79