#797C1C#797C1C
#797C1C is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.114 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797C1C |
|---|---|
| RGB | rgb(121, 124, 28) |
| HSL | hsl(62, 63%, 30%) |
| HSV | hsv(62, 77%, 49%) |
| CMYK | cmyk(2.4%, 0%, 77.4%, 51.4%) |
| CIE-LAB | lab(50.17, -13.22, 48.30) |
| CIE-LCH | lch(50.17, 50.08, 105.31°) |
| OKLab | oklab(56.59% -0.0415 0.1061) |
| OKLCH | oklch(56.59% 0.114 111.4) |
| XYZ | xyz(15.3029, 18.5645, 3.8756) |
| Luminance | 0.1856 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.95
Poop Green
#6F7C00
ΔE00 3.10
Olive
#808000
ΔE00 3.22
Olive (survey)
#6E750E
ΔE00 3.25
Murky Green
#6C7A0E
ΔE00 3.41
Swamp Green
#748500
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C1C #1F1C7C
analogous
#7C4F1C #797C1C #497C1C
triadic
#797C1C #1C797C #7C1C79
tetradic
#797C1C #1C7C4F #1F1C7C #7C1C49
square
#797C1C #1C7C4F #1F1C7C #7C1C49
split-complementary
#797C1C #1C497C #4F1C7C
monochromatic
#181906 #484A11 #797C1C #AAAE27 #CFD43F
Accessibility & contrast
On white
4.46
#797C1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#797C1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C1C
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C1C | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867606
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c1c; /* rgb */ color: rgb(121, 124, 28); /* oklch */ color: oklch(56.6% 0.114 111.4);
Tailwind
colors: {
custom: {
50: '#a3a161',
500: '#797c1c',
950: '#000000',
},
}SCSS
$custom: #797c1c; $custom-light: #a3a161; $custom-dark: #000000;
JSON
{
"hex": "#797c1c",
"rgb": {
"r": 121,
"g": 124,
"b": 28
},
"hsl": {
"h": 61.875,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.56593,
"c": 0.11391,
"h": 111.4
},
"luminance": 0.18564
}Semantic roles & 50–950 ramp
primary
#797C1C
secondary
#4744B0
accent
#42E647
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79