#797E38#797E38
#797E38 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.094 H 112.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #797E38 |
|---|---|
| RGB | rgb(121, 126, 56) |
| HSL | hsl(64, 38%, 36%) |
| HSV | hsv(64, 56%, 49%) |
| CMYK | cmyk(4%, 0%, 55.6%, 50.6%) |
| CIE-LAB | lab(51.00, -12.39, 36.90) |
| CIE-LCH | lch(51.00, 38.93, 108.56°) |
| OKLab | oklab(57.33% -0.0361 0.0864) |
| OKLCH | oklch(57.33% 0.094 112.7) |
| XYZ | xyz(16.0602, 19.2725, 6.6145) |
| Luminance | 0.1927 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.89
Olive Drab
#6F7632
ΔE00 3.36
Khaki Green
#728639
ΔE00 4.52
Dirty Green
#667E2C
ΔE00 5.31
Murky Green
#6C7A0E
ΔE00 5.54
Muddy Green
#657432
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E38 #3D387E
analogous
#7E6038 #797E38 #567E38
triadic
#797E38 #38797E #7E3879
tetradic
#797E38 #387E60 #3D387E #7E3856
square
#797E38 #387E60 #3D387E #7E3856
split-complementary
#797E38 #38567E #60387E
monochromatic
#282912 #505425 #797E38 #A2A84B #BAC071
Accessibility & contrast
On white
4.33
#797E38 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#797E38 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E38
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E38 | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877931
Deuteranopia (green-blind)
#877A3C
Tritanopia (blue-blind)
#80776E
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e38; /* rgb */ color: rgb(121, 126, 56); /* oklch */ color: oklch(57.3% 0.094 112.7);
Tailwind
colors: {
custom: {
50: '#a1a371',
500: '#797e38',
950: '#000000',
},
}SCSS
$custom: #797e38; $custom-light: #a1a371; $custom-dark: #000000;
JSON
{
"hex": "#797e38",
"rgb": {
"r": 121,
"g": 126,
"b": 56
},
"hsl": {
"h": 64.286,
"s": 38.462,
"l": 35.686
},
"oklch": {
"l": 0.57333,
"c": 0.0936,
"h": 112.7
},
"luminance": 0.19272
}Semantic roles & 50–950 ramp
primary
#797E38
secondary
#6E69A9
accent
#59CE62
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F08
muted
#7F7F7B