#7C8A38#7C8A38
#7C8A38 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.4% C 0.108 H 117.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #7C8A38 |
|---|---|
| RGB | rgb(124, 138, 56) |
| HSL | hsl(70, 42%, 38%) |
| HSV | hsv(70, 59%, 54%) |
| CMYK | cmyk(10.1%, 0%, 59.4%, 45.9%) |
| CIE-LAB | lab(54.81, -17.48, 41.30) |
| CIE-LCH | lch(54.81, 44.85, 112.94°) |
| OKLab | oklab(60.44% -0.0507 0.0957) |
| OKLCH | oklch(60.44% 0.108 117.9) |
| XYZ | xyz(18.1148, 22.7477, 7.1771) |
| Luminance | 0.2275 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Khaki Green
#728639
ΔE00 2.73
Camo
#7F8F4E
ΔE00 3.90
Drab
#828344
ΔE00 4.75
Olivedrab
#6B8E23
ΔE00 5.00
Swamp
#698339
ΔE00 5.06
Swamp Green
#748500
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C8A38 #46388A
analogous
#8A6F38 #7C8A38 #538A38
triadic
#7C8A38 #387C8A #8A387C
tetradic
#7C8A38 #388A6F #46388A #8A3853
square
#7C8A38 #388A6F #46388A #8A3853
split-complementary
#7C8A38 #38538A #6F388A
monochromatic
#2E3315 #555E26 #7C8A38 #A3B54A #B9C775
Accessibility & contrast
On white
3.78
#7C8A38 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.55
#7C8A38 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C8A38
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C8A38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C8A38 | 1.00 | 3.78 | 5.55 | 5.55 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#93832F
Deuteranopia (green-blind)
#91843D
Tritanopia (blue-blind)
#838378
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #7c8a38; /* rgb */ color: rgb(124, 138, 56); /* oklch */ color: oklch(60.4% 0.108 117.9);
Tailwind
colors: {
custom: {
50: '#a4ac72',
500: '#7c8a38',
950: '#000000',
},
}SCSS
$custom: #7c8a38; $custom-light: #a4ac72; $custom-dark: #000000;
JSON
{
"hex": "#7c8a38",
"rgb": {
"r": 124,
"g": 138,
"b": 56
},
"hsl": {
"h": 70.244,
"s": 42.268,
"l": 38.039
},
"oklch": {
"l": 0.60441,
"c": 0.1083,
"h": 117.9
},
"luminance": 0.22748
}Semantic roles & 50–950 ramp
primary
#7C8A38
secondary
#796EB0
accent
#56D26B
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B