#2F7C1A#2F7C1A
#2F7C1A is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.151 H 140.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7C1A |
|---|---|
| RGB | rgb(47, 124, 26) |
| HSL | hsl(107, 65%, 29%) |
| HSV | hsv(107, 79%, 49%) |
| CMYK | cmyk(62.1%, 0%, 79%, 51.4%) |
| CIE-LAB | lab(45.76, -42.04, 43.27) |
| CIE-LCH | lch(45.76, 60.33, 134.18°) |
| OKLab | oklab(51.86% -0.1154 0.0969) |
| OKLCH | oklch(51.86% 0.151 140) |
| XYZ | xyz(8.5660, 15.0934, 3.4390) |
| Luminance | 0.1509 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.84
Dark Grass Green
#388004
ΔE00 2.98
Green
#008000
ΔE00 3.07
Darkish Green
#287C37
ΔE00 4.98
Forestgreen (CSS)
#228B22
ΔE00 5.37
Emerald Green
#028F1E
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7C1A #671A7C
analogous
#607C1A #2F7C1A #1A7C36
triadic
#2F7C1A #1A2F7C #7C1A2F
tetradic
#2F7C1A #1A607C #671A7C #7C361A
square
#2F7C1A #1A607C #671A7C #7C361A
split-complementary
#2F7C1A #361A7C #7C1A60
monochromatic
#0A1905 #1C490F #2F7C1A #42AF25 #5CD63B
Accessibility & contrast
On white
5.23
#2F7C1A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#2F7C1A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7C1A
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7C1A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7C1A | 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)
#807003
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2f7c1a; /* rgb */ color: rgb(47, 124, 26); /* oklch */ color: oklch(51.9% 0.151 140.0);
Tailwind
colors: {
custom: {
50: '#72a35e',
500: '#2f7c1a',
950: '#000000',
},
}SCSS
$custom: #2f7c1a; $custom-light: #72a35e; $custom-dark: #000000;
JSON
{
"hex": "#2f7c1a",
"rgb": {
"r": 47,
"g": 124,
"b": 26
},
"hsl": {
"h": 107.143,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.51856,
"c": 0.15072,
"h": 140
},
"luminance": 0.15094
}Semantic roles & 50–950 ramp
primary
#2F7C1A
secondary
#9842B0
accent
#40E8C4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79