#796F21#796F21

#796F21 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.6% C 0.097 H 101.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796F21
RGBrgb(121, 111, 33)
HSLhsl(53, 57%, 30%)
HSVhsv(53, 73%, 47%)
CMYKcmyk(0%, 8.3%, 72.7%, 52.5%)
CIE-LABlab(46.37, -5.76, 42.70)
CIE-LCHlch(46.37, 43.09, 97.68°)
OKLaboklab(53.57% -0.02 0.0952)
OKLCHoklch(53.57% 0.097 101.9)
XYZxyz(13.8447, 15.5442, 3.7096)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F21 #212B79
analogous
#794321 #796F21 #577921
triadic
#796F21 #21796F #6F2179
tetradic
#796F21 #217943 #212B79 #792157
square
#796F21 #217943 #212B79 #792157
split-complementary
#796F21 #215779 #432179
monochromatic
#191707 #494314 #796F21 #A99B2E #CDBE47

Accessibility & contrast

On white

5.11
#796F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F21
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F21#FFFFFF#000000##FFFFFF
##796F211.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B15
Deuteranopia (green-blind)
#7D7026
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f21;
/* rgb */ color: rgb(121, 111, 33);
/* oklch */ color: oklch(53.6% 0.097 101.9);
Tailwind
colors: {
  custom: {
    50: '#a39862',
    500: '#796f21',
    950: '#000000',
  },
}
SCSS
$custom: #796f21;
$custom-light: #a39862;
$custom-dark: #000000;
JSON
{
  "hex": "#796f21",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 33
  },
  "hsl": {
    "h": 53.182,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53571,
    "c": 0.09727,
    "h": 101.9
  },
  "luminance": 0.15544
}

Semantic roles & 50–950 ramp

primary
#796F21
secondary
#4A55AC
accent
#59E047
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796F21

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#796F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva