#797D12#797D12
#797D12 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.120 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #797D12 |
|---|---|
| RGB | rgb(121, 125, 18) |
| HSL | hsl(62, 75%, 28%) |
| HSV | hsv(62, 86%, 49%) |
| CMYK | cmyk(3.2%, 0%, 85.6%, 51%) |
| CIE-LAB | lab(50.42, -14.15, 51.61) |
| CIE-LCH | lch(50.42, 53.52, 105.33°) |
| OKLab | oklab(56.78% -0.0449 0.1113) |
| OKLCH | oklch(56.78% 0.12 112) |
| XYZ | xyz(15.3285, 18.7763, 3.3889) |
| Luminance | 0.1878 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.12
Olive
#808000
ΔE00 2.43
Poop Green
#6F7C00
ΔE00 2.64
Murky Green
#6C7A0E
ΔE00 3.40
Olive (survey)
#6E750E
ΔE00 3.51
Swamp Green
#748500
ΔE00 4.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D12 #16127D
analogous
#7D4B12 #797D12 #437D12
triadic
#797D12 #12797D #7D1279
tetradic
#797D12 #127D4B #16127D #7D1243
square
#797D12 #127D4B #16127D #7D1243
split-complementary
#797D12 #12437D #4B127D
monochromatic
#1A1B04 #45480A #797D12 #ADB21A #D9E029
Accessibility & contrast
On white
4.42
#797D12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#797D12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D12
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D12 | 1.00 | 4.42 | 4.76 | 4.76 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#88791D
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d12; /* rgb */ color: rgb(121, 125, 18); /* oklch */ color: oklch(56.8% 0.120 112.0);
Tailwind
colors: {
custom: {
50: '#a3a25d',
500: '#797d12',
950: '#000000',
},
}SCSS
$custom: #797d12; $custom-light: #a3a25d; $custom-dark: #000000;
JSON
{
"hex": "#797d12",
"rgb": {
"r": 121,
"g": 125,
"b": 18
},
"hsl": {
"h": 62.243,
"s": 74.825,
"l": 28.039
},
"oklch": {
"l": 0.56778,
"c": 0.11997,
"h": 112
},
"luminance": 0.18776
}Semantic roles & 50–950 ramp
primary
#797D12
secondary
#3D38B3
accent
#36F13D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79