#2F7F18#2F7F18
#2F7F18 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.155 H 139.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7F18 |
|---|---|
| RGB | rgb(47, 127, 24) |
| HSL | hsl(107, 68%, 30%) |
| HSV | hsv(107, 81%, 50%) |
| CMYK | cmyk(63%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(46.77, -43.31, 44.93) |
| CIE-LCH | lch(46.77, 62.40, 133.95°) |
| OKLab | oklab(52.69% -0.1189 0.1001) |
| OKLCH | oklch(52.69% 0.155 139.9) |
| XYZ | xyz(8.9261, 15.8482, 3.4526) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.70
Dark Grass Green
#388004
ΔE00 2.29
Green
#008000
ΔE00 2.62
Forestgreen (CSS)
#228B22
ΔE00 4.39
Darkish Green
#287C37
ΔE00 5.49
Emerald Green
#028F1E
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7F18 #68187F
analogous
#637F18 #2F7F18 #187F35
triadic
#2F7F18 #182F7F #7F182F
tetradic
#2F7F18 #18637F #68187F #7F3518
square
#2F7F18 #18637F #68187F #7F3518
split-complementary
#2F7F18 #35187F #7F1863
monochromatic
#0A1A05 #1C4C0E #2F7F18 #42B222 #5CD938
Accessibility & contrast
On white
5.04
#2F7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#2F7F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7F18
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7F18 | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#247B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2f7f18; /* rgb */ color: rgb(47, 127, 24); /* oklch */ color: oklch(52.7% 0.155 139.9);
Tailwind
colors: {
custom: {
50: '#72a55e',
500: '#2f7f18',
950: '#000000',
},
}SCSS
$custom: #2f7f18; $custom-light: #72a55e; $custom-dark: #000000;
JSON
{
"hex": "#2f7f18",
"rgb": {
"r": 47,
"g": 127,
"b": 24
},
"hsl": {
"h": 106.602,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.52689,
"c": 0.15546,
"h": 139.9
},
"luminance": 0.15849
}Semantic roles & 50–950 ramp
primary
#2F7F18
secondary
#993FB3
accent
#3DEBC4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79