#7C873A#7C873A
#7C873A is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.102 H 116.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7C873A |
|---|---|
| RGB | rgb(124, 135, 58) |
| HSL | hsl(69, 40%, 38%) |
| HSV | hsv(69, 57%, 53%) |
| CMYK | cmyk(8.1%, 0%, 57%, 47.1%) |
| CIE-LAB | lab(53.94, -15.72, 39.34) |
| CIE-LCH | lch(53.94, 42.37, 111.78°) |
| OKLab | oklab(59.75% -0.0455 0.0918) |
| OKLCH | oklch(59.75% 0.102 116.4) |
| XYZ | xyz(17.7402, 21.9187, 7.2984) |
| Luminance | 0.2192 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki Green
#728639
ΔE00 2.64
Drab
#828344
ΔE00 3.59
Camo
#7F8F4E
ΔE00 4.10
Swamp
#698339
ΔE00 4.87
Dirty Green
#667E2C
ΔE00 5.54
Swamp Green
#748500
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C873A #453A87
analogous
#876B3A #7C873A #56873A
triadic
#7C873A #3A7C87 #873A7C
tetradic
#7C873A #3A876B #453A87 #873A56
square
#7C873A #3A876B #453A87 #873A56
split-complementary
#7C873A #3A5687 #6B3A87
monochromatic
#2D3115 #555C28 #7C873A #A3B24C #B9C577
Accessibility & contrast
On white
3.90
#7C873A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.38
#7C873A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C873A
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C873A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C873A | 1.00 | 3.90 | 5.38 | 5.38 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#908132
Deuteranopia (green-blind)
#8F823F
Tritanopia (blue-blind)
#838076
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #7c873a; /* rgb */ color: rgb(124, 135, 58); /* oklch */ color: oklch(59.7% 0.102 116.4);
Tailwind
colors: {
custom: {
50: '#a4a973',
500: '#7c873a',
950: '#000000',
},
}SCSS
$custom: #7c873a; $custom-light: #a4a973; $custom-dark: #000000;
JSON
{
"hex": "#7c873a",
"rgb": {
"r": 124,
"g": 135,
"b": 58
},
"hsl": {
"h": 68.571,
"s": 39.896,
"l": 37.843
},
"oklch": {
"l": 0.59749,
"c": 0.10243,
"h": 116.4
},
"luminance": 0.21919
}Semantic roles & 50–950 ramp
primary
#7C873A
secondary
#786FAE
accent
#58D069
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B