#797F39#797F39
#797F39 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.094 H 113.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #797F39 |
|---|---|
| RGB | rgb(121, 127, 57) |
| HSL | hsl(65, 38%, 36%) |
| HSV | hsv(65, 55%, 50%) |
| CMYK | cmyk(4.7%, 0%, 55.1%, 50.2%) |
| CIE-LAB | lab(51.31, -12.84, 36.75) |
| CIE-LCH | lch(51.31, 38.93, 109.26°) |
| OKLab | oklab(57.58% -0.0373 0.0861) |
| OKLCH | oklch(57.58% 0.094 113.4) |
| XYZ | xyz(16.2134, 19.5394, 6.7875) |
| Luminance | 0.1954 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.77
Olive Drab
#6F7632
ΔE00 3.62
Khaki Green
#728639
ΔE00 4.12
Dirty Green
#667E2C
ΔE00 5.14
Swamp
#698339
ΔE00 5.33
Murky Green
#6C7A0E
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F39 #3F397F
analogous
#7F6239 #797F39 #567F39
triadic
#797F39 #39797F #7F3979
tetradic
#797F39 #397F62 #3F397F #7F3956
square
#797F39 #397F62 #3F397F #7F3956
split-complementary
#797F39 #39567F #62397F
monochromatic
#292B13 #515526 #797F39 #A1A94C #B9C072
Accessibility & contrast
On white
4.28
#797F39 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.91
#797F39 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F39
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F39 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F39 | 1.00 | 4.28 | 4.91 | 4.91 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877932
Deuteranopia (green-blind)
#877B3D
Tritanopia (blue-blind)
#80786F
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f39; /* rgb */ color: rgb(121, 127, 57); /* oklch */ color: oklch(57.6% 0.094 113.4);
Tailwind
colors: {
custom: {
50: '#a1a472',
500: '#797f39',
950: '#000000',
},
}SCSS
$custom: #797f39; $custom-light: #a1a472; $custom-dark: #000000;
JSON
{
"hex": "#797f39",
"rgb": {
"r": 121,
"g": 127,
"b": 57
},
"hsl": {
"h": 65.143,
"s": 38.043,
"l": 36.078
},
"oklch": {
"l": 0.57582,
"c": 0.09386,
"h": 113.4
},
"luminance": 0.19539
}Semantic roles & 50–950 ramp
primary
#797F39
secondary
#706BA9
accent
#5ACE64
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F08
muted
#7F7F7B