#2C7F1F#2C7F1F
#2C7F1F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.153 H 141.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7F1F |
|---|---|
| RGB | rgb(44, 127, 31) |
| HSL | hsl(112, 61%, 31%) |
| HSV | hsv(112, 76%, 50%) |
| CMYK | cmyk(65.4%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.73, -43.54, 42.33) |
| CIE-LCH | lch(46.73, 60.73, 135.80°) |
| OKLab | oklab(52.64% -0.119 0.0957) |
| OKLCH | oklch(52.64% 0.153 141.2) |
| XYZ | xyz(8.8749, 15.8123, 3.8804) |
| Luminance | 0.1581 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.71
Green
#008000
ΔE00 2.84
Dark Grass Green
#388004
ΔE00 3.26
Forestgreen (CSS)
#228B22
ΔE00 4.28
Darkish Green
#287C37
ΔE00 4.55
Emerald Green
#028F1E
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7F1F #721F7F
analogous
#5C7F1F #2C7F1F #1F7F42
triadic
#2C7F1F #1F2C7F #7F1F2C
tetradic
#2C7F1F #1F5C7F #721F7F #7F421F
square
#2C7F1F #1F5C7F #721F7F #7F421F
split-complementary
#2C7F1F #421F7F #7F1F5C
monochromatic
#0A1D07 #1B4E13 #2C7F1F #3DB02B #59D246
Accessibility & contrast
On white
5.04
#2C7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#2C7F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7F1F
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7F1F | 1.00 | 5.04 | 4.16 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#1E7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2c7f1f; /* rgb */ color: rgb(44, 127, 31); /* oklch */ color: oklch(52.6% 0.153 141.2);
Tailwind
colors: {
custom: {
50: '#71a561',
500: '#2c7f1f',
950: '#000000',
},
}SCSS
$custom: #2c7f1f; $custom-light: #71a561; $custom-dark: #000000;
JSON
{
"hex": "#2c7f1f",
"rgb": {
"r": 44,
"g": 127,
"b": 31
},
"hsl": {
"h": 111.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52638,
"c": 0.15271,
"h": 141.2
},
"luminance": 0.15813
}Semantic roles & 50–950 ramp
primary
#2C7F1F
secondary
#A448B2
accent
#44E4CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A