#2A7F1C#2A7F1C
#2A7F1C is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.155 H 141.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F1C |
|---|---|
| RGB | rgb(42, 127, 28) |
| HSL | hsl(112, 64%, 30%) |
| HSV | hsv(112, 78%, 50%) |
| CMYK | cmyk(66.9%, 0%, 78%, 50.2%) |
| CIE-LAB | lab(46.65, -44.25, 43.37) |
| CIE-LCH | lch(46.65, 61.96, 135.58°) |
| OKLab | oklab(52.55% -0.1209 0.0975) |
| OKLCH | oklch(52.55% 0.155 141.1) |
| XYZ | xyz(8.7534, 15.7540, 3.6779) |
| Luminance | 0.1575 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.45
Green
#008000
ΔE00 2.51
Dark Grass Green
#388004
ΔE00 3.07
Forestgreen (CSS)
#228B22
ΔE00 4.26
Darkish Green
#287C37
ΔE00 4.83
Emerald Green
#028F1E
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F1C #711C7F
analogous
#5B7F1C #2A7F1C #1C7F3F
triadic
#2A7F1C #1C2A7F #7F1C2A
tetradic
#2A7F1C #1C5B7F #711C7F #7F3F1C
square
#2A7F1C #1C5B7F #711C7F #7F3F1C
split-complementary
#2A7F1C #3F1C7F #7F1C5B
monochromatic
#091B06 #194D11 #2A7F1C #3BB127 #55D540
Accessibility & contrast
On white
5.06
#2A7F1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F1C
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F1C | 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)
#827306
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f1c; /* rgb */ color: rgb(42, 127, 28); /* oklch */ color: oklch(52.6% 0.155 141.1);
Tailwind
colors: {
custom: {
50: '#70a560',
500: '#2a7f1c',
950: '#000000',
},
}SCSS
$custom: #2a7f1c; $custom-light: #70a560; $custom-dark: #000000;
JSON
{
"hex": "#2a7f1c",
"rgb": {
"r": 42,
"g": 127,
"b": 28
},
"hsl": {
"h": 111.515,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.52552,
"c": 0.15533,
"h": 141.1
},
"luminance": 0.15755
}Semantic roles & 50–950 ramp
primary
#2A7F1C
secondary
#A344B3
accent
#41E7CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79