#2A951F#2A951F
#2A951F is a mid, vivid green. Relative luminance 0.221; OKLCH L 58.7% C 0.179 H 141.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2A951F |
|---|---|
| RGB | rgb(42, 149, 31) |
| HSL | hsl(114, 66%, 35%) |
| HSV | hsv(114, 79%, 58%) |
| CMYK | cmyk(71.8%, 0%, 79.2%, 41.6%) |
| CIE-LAB | lab(54.12, -51.75, 49.61) |
| CIE-LCH | lch(54.12, 71.69, 136.21°) |
| OKLab | oklab(58.75% -0.141 0.1109) |
| OKLCH | oklch(58.75% 0.179 141.8) |
| XYZ | xyz(11.9489, 22.0848, 4.9291) |
| Luminance | 0.2209 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
True Green
#089404
ΔE00 1.88
Irish Green
#019529
ΔE00 2.33
Emerald Green
#028F1E
ΔE00 2.90
Grass Green
#3F9B0B
ΔE00 3.62
Forestgreen (CSS)
#228B22
ΔE00 3.73
Grassy Green
#419C03
ΔE00 4.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A951F #8A1F95
analogous
#65951F #2A951F #1F954F
triadic
#2A951F #1F2A95 #951F2A
tetradic
#2A951F #1F6595 #8A1F95 #954F1F
square
#2A951F #1F6595 #8A1F95 #954F1F
split-complementary
#2A951F #4F1F95 #951F65
monochromatic
#0D300A #1C6214 #2A951F #38C82A #60DB53
Accessibility & contrast
On white
3.88
#2A951F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#2A951F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A951F
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A951F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A951F | 1.00 | 3.88 | 5.42 | 5.42 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#0C907F
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #2a951f; /* rgb */ color: rgb(42, 149, 31); /* oklch */ color: oklch(58.7% 0.179 141.8);
Tailwind
colors: {
custom: {
50: '#75b564',
500: '#2a951f',
950: '#000000',
},
}SCSS
$custom: #2a951f; $custom-light: #75b564; $custom-dark: #000000;
JSON
{
"hex": "#2a951f",
"rgb": {
"r": 42,
"g": 149,
"b": 31
},
"hsl": {
"h": 114.407,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.58749,
"c": 0.17945,
"h": 141.8
},
"luminance": 0.22086
}Semantic roles & 50–950 ramp
primary
#2A951F
secondary
#B451BF
accent
#3FE9D9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A