#797F1D#797F1D
#797F1D is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.117 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #797F1D |
|---|---|
| RGB | rgb(121, 127, 29) |
| HSL | hsl(64, 63%, 31%) |
| HSV | hsv(64, 77%, 50%) |
| CMYK | cmyk(4.7%, 0%, 77.2%, 50.2%) |
| CIE-LAB | lab(51.07, -14.79, 48.79) |
| CIE-LCH | lch(51.07, 50.98, 106.86°) |
| OKLab | oklab(57.32% -0.0458 0.1073) |
| OKLCH | oklch(57.32% 0.117 113.1) |
| XYZ | xyz(15.6968, 19.3327, 4.0669) |
| Luminance | 0.1933 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.24
Poop Green
#6F7C00
ΔE00 2.85
Olive
#808000
ΔE00 3.20
Murky Green
#6C7A0E
ΔE00 3.34
Swamp Green
#748500
ΔE00 3.59
Olive (survey)
#6E750E
ΔE00 4.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F1D #231D7F
analogous
#7F541D #797F1D #487F1D
triadic
#797F1D #1D797F #7F1D79
tetradic
#797F1D #1D7F54 #231D7F #7F1D48
square
#797F1D #1D7F54 #231D7F #7F1D48
split-complementary
#797F1D #1D487F #541D7F
monochromatic
#1A1B06 #4A4D12 #797F1D #A8B128 #CBD442
Accessibility & contrast
On white
4.32
#797F1D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#797F1D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F1D
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F1D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F1D | 1.00 | 4.32 | 4.87 | 4.87 |
| #FFFFFF | 4.32 | 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)
#897906
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f1d; /* rgb */ color: rgb(121, 127, 29); /* oklch */ color: oklch(57.3% 0.117 113.1);
Tailwind
colors: {
custom: {
50: '#a3a361',
500: '#797f1d',
950: '#000000',
},
}SCSS
$custom: #797f1d; $custom-light: #a3a361; $custom-dark: #000000;
JSON
{
"hex": "#797f1d",
"rgb": {
"r": 121,
"g": 127,
"b": 29
},
"hsl": {
"h": 63.673,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.57316,
"c": 0.11665,
"h": 113.1
},
"luminance": 0.19332
}Semantic roles & 50–950 ramp
primary
#797F1D
secondary
#4C45B2
accent
#42E64C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A