#796D21#796D21

#796D21 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.095 H 100.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796D21
RGBrgb(121, 109, 33)
HSLhsl(52, 57%, 30%)
HSVhsv(52, 73%, 47%)
CMYKcmyk(0%, 9.9%, 72.7%, 52.5%)
CIE-LABlab(45.79, -4.62, 42.12)
CIE-LCHlch(45.79, 42.37, 96.27°)
OKLaboklab(53.11% -0.0168 0.094)
OKLCHoklch(53.11% 0.095 100.1)
XYZxyz(13.6289, 15.1127, 3.6377)
Luminance0.1511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D21 #212D79
analogous
#794121 #796D21 #597921
triadic
#796D21 #21796D #6D2179
tetradic
#796D21 #217941 #212D79 #792159
square
#796D21 #217941 #212D79 #792159
split-complementary
#796D21 #215979 #412179
monochromatic
#191607 #494214 #796D21 #A9982E #CDBB47

Accessibility & contrast

On white

5.22
#796D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D21
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D21#FFFFFF#000000##FFFFFF
##796D211.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A16
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d21;
/* rgb */ color: rgb(121, 109, 33);
/* oklch */ color: oklch(53.1% 0.095 100.1);
Tailwind
colors: {
  custom: {
    50: '#a39661',
    500: '#796d21',
    950: '#000000',
  },
}
SCSS
$custom: #796d21;
$custom-light: #a39661;
$custom-dark: #000000;
JSON
{
  "hex": "#796d21",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 33
  },
  "hsl": {
    "h": 51.818,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53109,
    "c": 0.09545,
    "h": 100.1
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#796D21
secondary
#4A57AC
accent
#5CE047
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796D21

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

Preview Lab → · Contrast checker → · Palette generator →

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