#2F7B18#2F7B18
#2F7B18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.151 H 139.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7B18 |
|---|---|
| RGB | rgb(47, 123, 24) |
| HSL | hsl(106, 67%, 29%) |
| HSV | hsv(106, 80%, 48%) |
| CMYK | cmyk(61.8%, 0%, 80.5%, 51.8%) |
| CIE-LAB | lab(45.41, -41.80, 43.62) |
| CIE-LCH | lch(45.41, 60.42, 133.78°) |
| OKLab | oklab(51.56% -0.1149 0.0974) |
| OKLCH | oklch(51.56% 0.151 139.7) |
| XYZ | xyz(8.4197, 14.8354, 3.2838) |
| Luminance | 0.1484 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.16
Dark Grass Green
#388004
ΔE00 3.03
Green
#008000
ΔE00 3.18
Darkish Green
#287C37
ΔE00 5.16
Forestgreen (CSS)
#228B22
ΔE00 5.73
Emerald Green
#028F1E
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7B18 #64187B
analogous
#617B18 #2F7B18 #187B33
triadic
#2F7B18 #182F7B #7B182F
tetradic
#2F7B18 #18617B #64187B #7B3318
square
#2F7B18 #18617B #64187B #7B3318
split-complementary
#2F7B18 #33187B #7B1861
monochromatic
#0A1A05 #1B480E #2F7B18 #43AE22 #5BD836
Accessibility & contrast
On white
5.29
#2F7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#2F7B18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7B18
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7B18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7B18 | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#257769
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #2f7b18; /* rgb */ color: rgb(47, 123, 24); /* oklch */ color: oklch(51.6% 0.151 139.7);
Tailwind
colors: {
custom: {
50: '#72a25d',
500: '#2f7b18',
950: '#000000',
},
}SCSS
$custom: #2f7b18; $custom-light: #72a25d; $custom-dark: #000000;
JSON
{
"hex": "#2f7b18",
"rgb": {
"r": 47,
"g": 123,
"b": 24
},
"hsl": {
"h": 106.061,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.51559,
"c": 0.15059,
"h": 139.7
},
"luminance": 0.14836
}Semantic roles & 50–950 ramp
primary
#2F7B18
secondary
#963FB0
accent
#3EEAC2
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F05
muted
#7B7F79