#797F1F#797F1F
#797F1F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.115 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #797F1F |
|---|---|
| RGB | rgb(121, 127, 31) |
| HSL | hsl(64, 61%, 31%) |
| HSV | hsv(64, 76%, 50%) |
| CMYK | cmyk(4.7%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(51.09, -14.69, 48.08) |
| CIE-LCH | lch(51.09, 50.28, 106.99°) |
| OKLab | oklab(57.33% -0.0453 0.1062) |
| OKLCH | oklch(57.33% 0.115 113.1) |
| XYZ | xyz(15.7223, 19.3430, 4.2014) |
| Luminance | 0.1934 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.43
Poop Green
#6F7C00
ΔE00 2.97
Murky Green
#6C7A0E
ΔE00 3.37
Olive
#808000
ΔE00 3.38
Swamp Green
#748500
ΔE00 3.71
Olive (survey)
#6E750E
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F1F #251F7F
analogous
#7F551F #797F1F #497F1F
triadic
#797F1F #1F797F #7F1F79
tetradic
#797F1F #1F7F55 #251F7F #7F1F49
square
#797F1F #1F7F55 #251F7F #7F1F49
split-complementary
#797F1F #1F497F #551F7F
monochromatic
#1B1D07 #4A4E13 #797F1F #A8B02B #C9D246
Accessibility & contrast
On white
4.31
#797F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#797F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F1F
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F1F | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89790B
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f1f; /* rgb */ color: rgb(121, 127, 31); /* oklch */ color: oklch(57.3% 0.115 113.1);
Tailwind
colors: {
custom: {
50: '#a3a362',
500: '#797f1f',
950: '#000000',
},
}SCSS
$custom: #797f1f; $custom-light: #a3a362; $custom-dark: #000000;
JSON
{
"hex": "#797f1f",
"rgb": {
"r": 121,
"g": 127,
"b": 31
},
"hsl": {
"h": 63.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.57329,
"c": 0.11544,
"h": 113.1
},
"luminance": 0.19343
}Semantic roles & 50–950 ramp
primary
#797F1F
secondary
#4E48B2
accent
#44E44E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A