#2C7F18#2C7F18
#2C7F18 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.157 H 140.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7F18 |
|---|---|
| RGB | rgb(44, 127, 24) |
| HSL | hsl(108, 68%, 30%) |
| HSV | hsv(108, 81%, 50%) |
| CMYK | cmyk(65.4%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(46.68, -44.06, 44.81) |
| CIE-LCH | lch(46.68, 62.84, 134.51°) |
| OKLab | oklab(52.59% -0.1208 0.0999) |
| OKLCH | oklch(52.59% 0.157 140.4) |
| XYZ | xyz(8.7925, 15.7793, 3.4463) |
| Luminance | 0.1578 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.47
Green
#008000
ΔE00 2.40
Dark Grass Green
#388004
ΔE00 2.53
Forestgreen (CSS)
#228B22
ΔE00 4.33
Darkish Green
#287C37
ΔE00 5.36
Emerald Green
#028F1E
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7F18 #6B187F
analogous
#5F7F18 #2C7F18 #187F38
triadic
#2C7F18 #182C7F #7F182C
tetradic
#2C7F18 #185F7F #6B187F #7F3818
square
#2C7F18 #185F7F #6B187F #7F3818
split-complementary
#2C7F18 #38187F #7F185F
monochromatic
#091A05 #1A4C0E #2C7F18 #3EB222 #57D938
Accessibility & contrast
On white
5.05
#2C7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#2C7F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7F18
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7F18 | 1.00 | 5.05 | 4.16 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#1F7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2c7f18; /* rgb */ color: rgb(44, 127, 24); /* oklch */ color: oklch(52.6% 0.157 140.4);
Tailwind
colors: {
custom: {
50: '#71a55e',
500: '#2c7f18',
950: '#000000',
},
}SCSS
$custom: #2c7f18; $custom-light: #71a55e; $custom-dark: #000000;
JSON
{
"hex": "#2c7f18",
"rgb": {
"r": 44,
"g": 127,
"b": 24
},
"hsl": {
"h": 108.35,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.52588,
"c": 0.15672,
"h": 140.4
},
"luminance": 0.1578
}Semantic roles & 50–950 ramp
primary
#2C7F18
secondary
#9D3FB3
accent
#3DEBC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79