#2F7C1C#2F7C1C
#2F7C1C is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.150 H 140.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7C1C |
|---|---|
| RGB | rgb(47, 124, 28) |
| HSL | hsl(108, 63%, 30%) |
| HSV | hsv(108, 77%, 49%) |
| CMYK | cmyk(62.1%, 0%, 77.4%, 51.4%) |
| CIE-LAB | lab(45.77, -41.90, 42.55) |
| CIE-LCH | lch(45.77, 59.71, 134.56°) |
| OKLab | oklab(51.87% -0.1149 0.0957) |
| OKLCH | oklch(51.87% 0.15 140.2) |
| XYZ | xyz(8.5891, 15.1027, 3.5609) |
| Luminance | 0.1510 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.89
Green
#008000
ΔE00 3.18
Dark Grass Green
#388004
ΔE00 3.19
Darkish Green
#287C37
ΔE00 4.74
Forestgreen (CSS)
#228B22
ΔE00 5.36
Emerald Green
#028F1E
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7C1C #691C7C
analogous
#5F7C1C #2F7C1C #1C7C39
triadic
#2F7C1C #1C2F7C #7C1C2F
tetradic
#2F7C1C #1C5F7C #691C7C #7C391C
square
#2F7C1C #1C5F7C #691C7C #7C391C
split-complementary
#2F7C1C #391C7C #7C1C5F
monochromatic
#091906 #1C4A11 #2F7C1C #42AE27 #5CD43F
Accessibility & contrast
On white
5.22
#2F7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#2F7C1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7C1C
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7C1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7C1C | 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)
#807008
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#25786A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2f7c1c; /* rgb */ color: rgb(47, 124, 28); /* oklch */ color: oklch(51.9% 0.150 140.2);
Tailwind
colors: {
custom: {
50: '#72a35f',
500: '#2f7c1c',
950: '#000000',
},
}SCSS
$custom: #2f7c1c; $custom-light: #72a35f; $custom-dark: #000000;
JSON
{
"hex": "#2f7c1c",
"rgb": {
"r": 47,
"g": 124,
"b": 28
},
"hsl": {
"h": 108.125,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.5187,
"c": 0.14955,
"h": 140.2
},
"luminance": 0.15103
}Semantic roles & 50–950 ramp
primary
#2F7C1C
secondary
#9A44B0
accent
#42E6C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79