#2F7F2C#2F7F2C
#2F7F2C is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.142 H 142.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7F2C |
|---|---|
| RGB | rgb(47, 127, 44) |
| HSL | hsl(118, 49%, 34%) |
| HSV | hsv(118, 65%, 50%) |
| CMYK | cmyk(63%, 0%, 65.4%, 50.2%) |
| CIE-LAB | lab(46.93, -41.53, 36.98) |
| CIE-LCH | lch(46.93, 55.61, 138.32°) |
| OKLab | oklab(52.86% -0.113 0.0861) |
| OKLCH | oklch(52.86% 0.142 142.7) |
| XYZ | xyz(9.2158, 15.9641, 4.9781) |
| Luminance | 0.1596 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.48
Darkish Green
#287C37
ΔE00 2.87
Green
#008000
ΔE00 4.39
Forestgreen (CSS)
#228B22
ΔE00 4.74
Dark Grass Green
#388004
ΔE00 4.89
Jungle Green
#048243
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7F2C #7C2C7F
analogous
#587F2C #2F7F2C #2C7F52
triadic
#2F7F2C #2C2F7F #7F2C2F
tetradic
#2F7F2C #2C587F #7C2C7F #7F522C
square
#2F7F2C #2C587F #7C2C7F #7F522C
split-complementary
#2F7F2C #522C7F #7F2C58
monochromatic
#0D240D #1E521C #2F7F2C #40AC3C #62C75E
Accessibility & contrast
On white
5.01
#2F7F2C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#2F7F2C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7F2C
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7F2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7F2C | 1.00 | 5.01 | 4.19 | 5.01 |
| #FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827322
Deuteranopia (green-blind)
#786D33
Tritanopia (blue-blind)
#217B6E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2f7f2c; /* rgb */ color: rgb(47, 127, 44); /* oklch */ color: oklch(52.9% 0.142 142.7);
Tailwind
colors: {
custom: {
50: '#71a569',
500: '#2f7f2c',
950: '#000000',
},
}SCSS
$custom: #2f7f2c; $custom-light: #71a569; $custom-dark: #000000;
JSON
{
"hex": "#2f7f2c",
"rgb": {
"r": 47,
"g": 127,
"b": 44
},
"hsl": {
"h": 117.831,
"s": 48.538,
"l": 33.529
},
"oklch": {
"l": 0.52864,
"c": 0.14205,
"h": 142.7
},
"luminance": 0.15965
}Semantic roles & 50–950 ramp
primary
#2F7F2C
secondary
#AA59AD
accent
#50D8D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A