#2C7F12#2C7F12
#2C7F12 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.160 H 139.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7F12 |
|---|---|
| RGB | rgb(44, 127, 18) |
| HSL | hsl(106, 75%, 28%) |
| HSV | hsv(106, 86%, 50%) |
| CMYK | cmyk(65.4%, 0%, 85.8%, 50.2%) |
| CIE-LAB | lab(46.65, -44.41, 46.61) |
| CIE-LCH | lch(46.65, 64.38, 133.62°) |
| OKLab | oklab(52.55% -0.122 0.1028) |
| OKLCH | oklch(52.55% 0.16 139.9) |
| XYZ | xyz(8.7369, 15.7570, 3.1531) |
| Luminance | 0.1576 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.93
Dark Grass Green
#388004
ΔE00 2.04
Green
#008000
ΔE00 2.24
Forestgreen (CSS)
#228B22
ΔE00 4.47
Emerald Green
#028F1E
ΔE00 5.91
Darkish Green
#287C37
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7F12 #65127F
analogous
#627F12 #2C7F12 #127F2E
triadic
#2C7F12 #122C7F #7F122C
tetradic
#2C7F12 #12627F #65127F #7F2E12
square
#2C7F12 #12627F #65127F #7F2E12
split-complementary
#2C7F12 #2E127F #7F1262
monochromatic
#091B04 #19490A #2C7F12 #3FB51A #56E12B
Accessibility & contrast
On white
5.06
#2C7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2C7F12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7F12
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7F12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7F12 | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2c7f12; /* rgb */ color: rgb(44, 127, 18); /* oklch */ color: oklch(52.6% 0.160 139.9);
Tailwind
colors: {
custom: {
50: '#71a55c',
500: '#2c7f12',
950: '#000000',
},
}SCSS
$custom: #2c7f12; $custom-light: #71a55c; $custom-dark: #000000;
JSON
{
"hex": "#2c7f12",
"rgb": {
"r": 44,
"g": 127,
"b": 18
},
"hsl": {
"h": 105.688,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.52554,
"c": 0.15951,
"h": 139.9
},
"luminance": 0.15758
}Semantic roles & 50–950 ramp
primary
#2C7F12
secondary
#9738B5
accent
#36F2C5
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79