#7C8A34#7C8A34
#7C8A34 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.112 H 117.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #7C8A34 |
|---|---|
| RGB | rgb(124, 138, 52) |
| HSL | hsl(70, 45%, 37%) |
| HSV | hsv(70, 62%, 54%) |
| CMYK | cmyk(10.1%, 0%, 62.3%, 45.9%) |
| CIE-LAB | lab(54.77, -17.81, 43.13) |
| CIE-LCH | lch(54.77, 46.66, 112.44°) |
| OKLab | oklab(60.4% -0.052 0.0991) |
| OKLCH | oklch(60.4% 0.112 117.7) |
| XYZ | xyz(18.0208, 22.7101, 6.6823) |
| Luminance | 0.2271 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki Green
#728639
ΔE00 3.08
Camo
#7F8F4E
ΔE00 4.49
Swamp Green
#748500
ΔE00 4.77
Olivedrab
#6B8E23
ΔE00 4.79
Drab
#828344
ΔE00 5.08
Dark Yellow Green
#728F02
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C8A34 #42348A
analogous
#8A6D34 #7C8A34 #518A34
triadic
#7C8A34 #347C8A #8A347C
tetradic
#7C8A34 #348A6D #42348A #8A3451
square
#7C8A34 #348A6D #42348A #8A3451
split-complementary
#7C8A34 #34518A #6D348A
monochromatic
#2C3113 #545E23 #7C8A34 #A4B645 #BAC96F
Accessibility & contrast
On white
3.79
#7C8A34 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#7C8A34 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C8A34
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C8A34 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C8A34 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#93832A
Deuteranopia (green-blind)
#91843A
Tritanopia (blue-blind)
#838378
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #7c8a34; /* rgb */ color: rgb(124, 138, 52); /* oklch */ color: oklch(60.4% 0.112 117.7);
Tailwind
colors: {
custom: {
50: '#a4ac6f',
500: '#7c8a34',
950: '#000000',
},
}SCSS
$custom: #7c8a34; $custom-light: #a4ac6f; $custom-dark: #000000;
JSON
{
"hex": "#7c8a34",
"rgb": {
"r": 124,
"g": 138,
"b": 52
},
"hsl": {
"h": 69.767,
"s": 45.263,
"l": 37.255
},
"oklch": {
"l": 0.60397,
"c": 0.11192,
"h": 117.7
},
"luminance": 0.2271
}Semantic roles & 50–950 ramp
primary
#7C8A34
secondary
#7569B1
accent
#53D568
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1008
muted
#7F7F7B