#797F45#797F45
#797F45 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.081 H 113.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #797F45 |
|---|---|
| RGB | rgb(121, 127, 69) |
| HSL | hsl(66, 30%, 38%) |
| HSV | hsv(66, 46%, 50%) |
| CMYK | cmyk(4.7%, 0%, 45.7%, 50.2%) |
| CIE-LAB | lab(51.47, -11.60, 30.66) |
| CIE-LCH | lch(51.47, 32.78, 110.73°) |
| OKLab | oklab(57.76% -0.0325 0.0738) |
| OKLCH | oklch(57.76% 0.081 113.8) |
| XYZ | xyz(16.5489, 19.6736, 8.5547) |
| Luminance | 0.1967 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.75
Olive Drab
#6F7632
ΔE00 4.31
Khaki Green
#728639
ΔE00 4.88
Military Green
#667C3E
ΔE00 5.12
Swamp
#698339
ΔE00 5.60
Muddy Green
#657432
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F45 #4B457F
analogous
#7F6845 #797F45 #5C7F45
triadic
#797F45 #45797F #7F4579
tetradic
#797F45 #457F68 #4B457F #7F455C
square
#797F45 #457F68 #4B457F #7F455C
split-complementary
#797F45 #455C7F #68457F
monochromatic
#2D301A #53572F #797F45 #9EA65B #B6BC83
Accessibility & contrast
On white
4.26
#797F45 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#797F45 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F45
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F45 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F45 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867A40
Deuteranopia (green-blind)
#867B48
Tritanopia (blue-blind)
#7F7971
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #797f45; /* rgb */ color: rgb(121, 127, 69); /* oklch */ color: oklch(57.8% 0.081 113.8);
Tailwind
colors: {
custom: {
50: '#a1a47a',
500: '#797f45',
950: '#000000',
},
}SCSS
$custom: #797f45; $custom-light: #a1a47a; $custom-dark: #000000;
JSON
{
"hex": "#797f45",
"rgb": {
"r": 121,
"g": 127,
"b": 69
},
"hsl": {
"h": 66.207,
"s": 29.592,
"l": 38.431
},
"oklch": {
"l": 0.57755,
"c": 0.08068,
"h": 113.8
},
"luminance": 0.19673
}Semantic roles & 50–950 ramp
primary
#797F45
secondary
#7E79A7
accent
#62C66C
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F09
muted
#7F7F7B