#2A7F2D#2A7F2D
#2A7F2D is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.143 H 143.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F2D |
|---|---|
| RGB | rgb(42, 127, 45) |
| HSL | hsl(122, 50%, 33%) |
| HSV | hsv(122, 67%, 50%) |
| CMYK | cmyk(66.9%, 0%, 64.6%, 50.2%) |
| CIE-LAB | lab(46.79, -42.60, 36.31) |
| CIE-LCH | lch(46.79, 55.98, 139.56°) |
| OKLab | oklab(52.71% -0.1155 0.0848) |
| OKLCH | oklch(52.71% 0.143 143.7) |
| XYZ | xyz(9.0173, 15.8595, 5.0681) |
| Luminance | 0.1586 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.49
Tree Green
#2A7E19
ΔE00 2.79
Green
#008000
ΔE00 4.47
Forestgreen (CSS)
#228B22
ΔE00 4.85
Jungle Green
#048243
ΔE00 5.01
Dark Grass Green
#388004
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F2D #7F2A7C
analogous
#517F2A #2A7F2D #2A7F57
triadic
#2A7F2D #2D2A7F #7F2D2A
tetradic
#2A7F2D #2A517F #7F2A7C #7F572A
square
#2A7F2D #2A517F #7F2A7C #7F572A
split-complementary
#2A7F2D #572A7F #7F2A51
monochromatic
#0C230C #1B511D #2A7F2D #39AD3D #5BC95F
Accessibility & contrast
On white
5.03
#2A7F2D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#2A7F2D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F2D
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F2D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F2D | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827324
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#167B6E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f2d; /* rgb */ color: rgb(42, 127, 45); /* oklch */ color: oklch(52.7% 0.143 143.7);
Tailwind
colors: {
custom: {
50: '#6fa569',
500: '#2a7f2d',
950: '#000000',
},
}SCSS
$custom: #2a7f2d; $custom-light: #6fa569; $custom-dark: #000000;
JSON
{
"hex": "#2a7f2d",
"rgb": {
"r": 42,
"g": 127,
"b": 45
},
"hsl": {
"h": 122.118,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.52712,
"c": 0.14333,
"h": 143.7
},
"luminance": 0.1586
}Semantic roles & 50–950 ramp
primary
#2A7F2D
secondary
#AE57AB
accent
#4ED5DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A