#2F7D1C#2F7D1C
#2F7D1C is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.151 H 140.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7D1C |
|---|---|
| RGB | rgb(47, 125, 28) |
| HSL | hsl(108, 63%, 30%) |
| HSV | hsv(108, 78%, 49%) |
| CMYK | cmyk(62.4%, 0%, 77.6%, 51%) |
| CIE-LAB | lab(46.12, -42.28, 42.89) |
| CIE-LCH | lch(46.12, 60.22, 134.59°) |
| OKLab | oklab(52.15% -0.1159 0.0964) |
| OKLCH | oklch(52.15% 0.151 140.2) |
| XYZ | xyz(8.7151, 15.3546, 3.6028) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.63
Dark Grass Green
#388004
ΔE00 2.99
Green
#008000
ΔE00 3.01
Darkish Green
#287C37
ΔE00 4.82
Forestgreen (CSS)
#228B22
ΔE00 5.01
Emerald Green
#028F1E
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7D1C #6A1C7D
analogous
#607D1C #2F7D1C #1C7D39
triadic
#2F7D1C #1C2F7D #7D1C2F
tetradic
#2F7D1C #1C607D #6A1C7D #7D391C
square
#2F7D1C #1C607D #6A1C7D #7D391C
split-complementary
#2F7D1C #391C7D #7D1C60
monochromatic
#091906 #1C4B11 #2F7D1C #42AF27 #5CD43F
Accessibility & contrast
On white
5.16
#2F7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#2F7D1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7D1C
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7D1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7D1C | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817107
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#24796A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2f7d1c; /* rgb */ color: rgb(47, 125, 28); /* oklch */ color: oklch(52.2% 0.151 140.2);
Tailwind
colors: {
custom: {
50: '#72a360',
500: '#2f7d1c',
950: '#000000',
},
}SCSS
$custom: #2f7d1c; $custom-light: #72a360; $custom-dark: #000000;
JSON
{
"hex": "#2f7d1c",
"rgb": {
"r": 47,
"g": 125,
"b": 28
},
"hsl": {
"h": 108.247,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.52152,
"c": 0.1508,
"h": 140.2
},
"luminance": 0.15355
}Semantic roles & 50–950 ramp
primary
#2F7D1C
secondary
#9B44B1
accent
#41E6C6
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79