#2C7C1F#2C7C1F
#2C7C1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.149 H 141.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2C7C1F |
|---|---|
| RGB | rgb(44, 124, 31) |
| HSL | hsl(112, 60%, 30%) |
| HSV | hsv(112, 75%, 49%) |
| CMYK | cmyk(64.5%, 0%, 75%, 51.4%) |
| CIE-LAB | lab(45.70, -42.42, 41.29) |
| CIE-LCH | lch(45.70, 59.20, 135.77°) |
| OKLab | oklab(51.79% -0.1159 0.0936) |
| OKLCH | oklch(51.79% 0.149 141.1) |
| XYZ | xyz(8.4933, 15.0489, 3.7532) |
| Luminance | 0.1505 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.08
Green
#008000
ΔE00 3.25
Dark Grass Green
#388004
ΔE00 3.72
Darkish Green
#287C37
ΔE00 4.21
Forestgreen (CSS)
#228B22
ΔE00 5.33
Emerald Green
#028F1E
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C7C1F #6F1F7C
analogous
#5A7C1F #2C7C1F #1F7C40
triadic
#2C7C1F #1F2C7C #7C1F2C
tetradic
#2C7C1F #1F5A7C #6F1F7C #7C401F
square
#2C7C1F #1F5A7C #6F1F7C #7C401F
split-complementary
#2C7C1F #401F7C #7C1F5A
monochromatic
#091A07 #1B4B13 #2C7C1F #3DAD2B #58D045
Accessibility & contrast
On white
5.24
#2C7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#2C7C1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C7C1F
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C7C1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C7C1F | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#1F786A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #2c7c1f; /* rgb */ color: rgb(44, 124, 31); /* oklch */ color: oklch(51.8% 0.149 141.1);
Tailwind
colors: {
custom: {
50: '#70a361',
500: '#2c7c1f',
950: '#000000',
},
}SCSS
$custom: #2c7c1f; $custom-light: #70a361; $custom-dark: #000000;
JSON
{
"hex": "#2c7c1f",
"rgb": {
"r": 44,
"g": 124,
"b": 31
},
"hsl": {
"h": 111.613,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.51789,
"c": 0.14899,
"h": 141.1
},
"luminance": 0.1505
}Semantic roles & 50–950 ramp
primary
#2C7C1F
secondary
#A148AF
accent
#45E3CD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79