#796B22#796B22
#796B22 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.093 H 98.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #796B22 |
|---|---|
| RGB | rgb(121, 107, 34) |
| HSL | hsl(50, 56%, 30%) |
| HSV | hsv(50, 72%, 47%) |
| CMYK | cmyk(0%, 11.6%, 71.9%, 52.5%) |
| CIE-LAB | lab(45.22, -3.42, 41.10) |
| CIE-LCH | lch(45.22, 41.25, 94.76°) |
| OKLab | oklab(52.66% -0.0132 0.092) |
| OKLCH | oklch(52.66% 0.093 98.2) |
| XYZ | xyz(13.4322, 14.6965, 3.6422) |
| Luminance | 0.1470 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Green
#706C11
ΔE00 3.97
Ugly Brown
#7D7103
ΔE00 4.30
Browny Green
#6F6C0A
ΔE00 4.50
Greenish Brown
#696112
ΔE00 4.66
Greeny Brown
#696006
ΔE00 5.05
Mud
#735C12
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796B22 #223079
analogous
#793F22 #796B22 #5B7922
triadic
#796B22 #22796B #6B2279
tetradic
#796B22 #22793F #223079 #79225B
square
#796B22 #22793F #223079 #79225B
split-complementary
#796B22 #225B79 #3F2279
monochromatic
#191707 #494115 #796B22 #A9952F #CCB749
Accessibility & contrast
On white
5.33
#796B22 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#796B22 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #796B22
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796B22 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##796B22 | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766818
Deuteranopia (green-blind)
#7A6D26
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #796b22; /* rgb */ color: rgb(121, 107, 34); /* oklch */ color: oklch(52.7% 0.093 98.2);
Tailwind
colors: {
custom: {
50: '#a39562',
500: '#796b22',
950: '#000000',
},
}SCSS
$custom: #796b22; $custom-light: #a39562; $custom-dark: #000000;
JSON
{
"hex": "#796b22",
"rgb": {
"r": 121,
"g": 107,
"b": 34
},
"hsl": {
"h": 50.345,
"s": 56.129,
"l": 30.392
},
"oklch": {
"l": 0.52657,
"c": 0.09296,
"h": 98.2
},
"luminance": 0.14696
}Semantic roles & 50–950 ramp
primary
#796B22
secondary
#4B5BAC
accent
#61DF48
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79