#2C7B18#2C7B18
#2C7B18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.152 H 140.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7B18 |
|---|---|
| RGB | rgb(44, 123, 24) |
| HSL | hsl(108, 67%, 29%) |
| HSV | hsv(108, 80%, 48%) |
| CMYK | cmyk(64.2%, 0%, 80.5%, 51.8%) |
| CIE-LAB | lab(45.31, -42.58, 43.50) |
| CIE-LCH | lch(45.31, 60.87, 134.39°) |
| OKLab | oklab(51.45% -0.1168 0.0971) |
| OKLCH | oklch(51.45% 0.152 140.2) |
| XYZ | xyz(8.2861, 14.7666, 3.2775) |
| Luminance | 0.1477 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.06
Green
#008000
ΔE00 3.00
Dark Grass Green
#388004
ΔE00 3.24
Darkish Green
#287C37
ΔE00 5.02
Forestgreen (CSS)
#228B22
ΔE00 5.69
Emerald Green
#028F1E
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7B18 #67187B
analogous
#5E7B18 #2C7B18 #187B36
triadic
#2C7B18 #182C7B #7B182C
tetradic
#2C7B18 #185E7B #67187B #7B3618
square
#2C7B18 #185E7B #67187B #7B3618
split-complementary
#2C7B18 #36187B #7B185E
monochromatic
#091A05 #1A480E #2C7B18 #3EAE22 #56D836
Accessibility & contrast
On white
5.31
#2C7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#2C7B18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7B18
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7B18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7B18 | 1.00 | 5.31 | 3.95 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#207768
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #2c7b18; /* rgb */ color: rgb(44, 123, 24); /* oklch */ color: oklch(51.5% 0.152 140.2);
Tailwind
colors: {
custom: {
50: '#70a25d',
500: '#2c7b18',
950: '#000000',
},
}SCSS
$custom: #2c7b18; $custom-light: #70a25d; $custom-dark: #000000;
JSON
{
"hex": "#2c7b18",
"rgb": {
"r": 44,
"g": 123,
"b": 24
},
"hsl": {
"h": 107.879,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.51453,
"c": 0.15189,
"h": 140.2
},
"luminance": 0.14767
}Semantic roles & 50–950 ramp
primary
#2C7B18
secondary
#993FB0
accent
#3EEAC7
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79