#2F7C18#2F7C18
#2F7C18 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.152 H 139.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7C18 |
|---|---|
| RGB | rgb(47, 124, 24) |
| HSL | hsl(106, 68%, 29%) |
| HSV | hsv(106, 81%, 49%) |
| CMYK | cmyk(62.1%, 0%, 80.6%, 51.4%) |
| CIE-LAB | lab(45.75, -42.18, 43.95) |
| CIE-LCH | lch(45.75, 60.92, 133.82°) |
| OKLab | oklab(51.84% -0.1159 0.0981) |
| OKLCH | oklch(51.84% 0.152 139.8) |
| XYZ | xyz(8.5444, 15.0848, 3.3254) |
| Luminance | 0.1509 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.86
Dark Grass Green
#388004
ΔE00 2.80
Green
#008000
ΔE00 2.99
Darkish Green
#287C37
ΔE00 5.21
Forestgreen (CSS)
#228B22
ΔE00 5.39
Emerald Green
#028F1E
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7C18 #65187C
analogous
#617C18 #2F7C18 #187C33
triadic
#2F7C18 #182F7C #7C182F
tetradic
#2F7C18 #18617C #65187C #7C3318
square
#2F7C18 #18617C #65187C #7C3318
split-complementary
#2F7C18 #33187C #7C1861
monochromatic
#0A1A05 #1C490E #2F7C18 #42AF22 #5BD836
Accessibility & contrast
On white
5.23
#2F7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#2F7C18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7C18
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7C18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7C18 | 1.00 | 5.23 | 4.02 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2f7c18; /* rgb */ color: rgb(47, 124, 24); /* oklch */ color: oklch(51.8% 0.152 139.8);
Tailwind
colors: {
custom: {
50: '#72a35e',
500: '#2f7c18',
950: '#000000',
},
}SCSS
$custom: #2f7c18; $custom-light: #72a35e; $custom-dark: #000000;
JSON
{
"hex": "#2f7c18",
"rgb": {
"r": 47,
"g": 124,
"b": 24
},
"hsl": {
"h": 106.2,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.51842,
"c": 0.15182,
"h": 139.8
},
"luminance": 0.15086
}Semantic roles & 50–950 ramp
primary
#2F7C18
secondary
#973FB1
accent
#3DEAC3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79