#51801C#51801C
#51801C is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.137 H 132.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #51801C |
|---|---|
| RGB | rgb(81, 128, 28) |
| HSL | hsl(88, 64%, 31%) |
| HSV | hsv(88, 78%, 50%) |
| CMYK | cmyk(36.7%, 0%, 78.1%, 49.8%) |
| CIE-LAB | lab(48.60, -32.43, 45.82) |
| CIE-LCH | lch(48.60, 56.13, 125.29°) |
| OKLab | oklab(54.6% -0.0917 0.102) |
| OKLCH | oklch(54.6% 0.137 132) |
| XYZ | xyz(11.3220, 17.2711, 3.8355) |
| Luminance | 0.1727 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.66
Dark Grass Green
#388004
ΔE00 3.63
Sap Green
#5C8B15
ΔE00 4.58
Dirty Green
#667E2C
ΔE00 4.64
Mossy Green
#638B27
ΔE00 4.82
Swamp
#698339
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51801C #4B1C80
analogous
#807D1C #51801C #1F801C
triadic
#51801C #1C5180 #801C51
tetradic
#51801C #1C807D #4B1C80 #801C1F
square
#51801C #1C807D #4B1C80 #801C1F
split-complementary
#51801C #1C1F80 #7D1C80
monochromatic
#111C06 #314E11 #51801C #71B227 #90D541
Accessibility & contrast
On white
4.71
#51801C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#51801C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #51801C
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51801C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51801C | 1.00 | 4.71 | 4.45 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867605
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #51801c; /* rgb */ color: rgb(81, 128, 28); /* oklch */ color: oklch(54.6% 0.137 132.0);
Tailwind
colors: {
custom: {
50: '#86a560',
500: '#51801c',
950: '#000000',
},
}SCSS
$custom: #51801c; $custom-light: #86a560; $custom-dark: #000000;
JSON
{
"hex": "#51801c",
"rgb": {
"r": 81,
"g": 128,
"b": 28
},
"hsl": {
"h": 88.2,
"s": 64.103,
"l": 30.588
},
"oklch": {
"l": 0.546,
"c": 0.13717,
"h": 132
},
"luminance": 0.17272
}Semantic roles & 50–950 ramp
primary
#51801C
secondary
#7944B3
accent
#41E78F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79