#2C7A18#2C7A18
#2C7A18 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.151 H 140.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7A18 |
|---|---|
| RGB | rgb(44, 122, 24) |
| HSL | hsl(108, 67%, 29%) |
| HSV | hsv(108, 80%, 48%) |
| CMYK | cmyk(63.9%, 0%, 80.3%, 52.2%) |
| CIE-LAB | lab(44.97, -42.20, 43.17) |
| CIE-LCH | lch(44.97, 60.37, 134.35°) |
| OKLab | oklab(51.17% -0.1158 0.0964) |
| OKLCH | oklch(51.17% 0.151 140.2) |
| XYZ | xyz(8.1627, 14.5197, 3.2364) |
| Luminance | 0.1452 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.40
Green
#008000
ΔE00 3.24
Dark Grass Green
#388004
ΔE00 3.49
Darkish Green
#287C37
ΔE00 4.99
Forestgreen (CSS)
#228B22
ΔE00 6.03
Emerald Green
#028F1E
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7A18 #66187A
analogous
#5D7A18 #2C7A18 #187A35
triadic
#2C7A18 #182C7A #7A182C
tetradic
#2C7A18 #185D7A #66187A #7A3518
square
#2C7A18 #185D7A #66187A #7A3518
split-complementary
#2C7A18 #35187A #7A185D
monochromatic
#091A05 #1A470E #2C7A18 #3EAD22 #56D735
Accessibility & contrast
On white
5.38
#2C7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#2C7A18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7A18
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7A18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7A18 | 1.00 | 5.38 | 3.90 | 5.38 |
| #FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#217668
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2c7a18; /* rgb */ color: rgb(44, 122, 24); /* oklch */ color: oklch(51.2% 0.151 140.2);
Tailwind
colors: {
custom: {
50: '#70a15d',
500: '#2c7a18',
950: '#000000',
},
}SCSS
$custom: #2c7a18; $custom-light: #70a15d; $custom-dark: #000000;
JSON
{
"hex": "#2c7a18",
"rgb": {
"r": 44,
"g": 122,
"b": 24
},
"hsl": {
"h": 107.755,
"s": 67.123,
"l": 28.627
},
"oklch": {
"l": 0.51169,
"c": 0.15068,
"h": 140.2
},
"luminance": 0.1452
}Semantic roles & 50–950 ramp
primary
#2C7A18
secondary
#983FAF
accent
#3EEAC7
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79