#796E21#796E21

#796E21 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.096 H 101.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796E21
RGBrgb(121, 110, 33)
HSLhsl(53, 57%, 30%)
HSVhsv(53, 73%, 47%)
CMYKcmyk(0%, 9.1%, 72.7%, 52.5%)
CIE-LABlab(46.08, -5.19, 42.41)
CIE-LCHlch(46.08, 42.72, 96.98°)
OKLaboklab(53.34% -0.0184 0.0946)
OKLCHoklch(53.34% 0.096 101)
XYZxyz(13.7362, 15.3272, 3.6735)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E21 #212C79
analogous
#794221 #796E21 #587921
triadic
#796E21 #21796E #6E2179
tetradic
#796E21 #217942 #212C79 #792158
square
#796E21 #217942 #212C79 #792158
split-complementary
#796E21 #215879 #422179
monochromatic
#191707 #494214 #796E21 #A99A2E #CDBC47

Accessibility & contrast

On white

5.17
#796E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#796E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E21
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E21#FFFFFF#000000##FFFFFF
##796E211.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B15
Deuteranopia (green-blind)
#7C6F26
Tritanopia (blue-blind)
#83665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e21;
/* rgb */ color: rgb(121, 110, 33);
/* oklch */ color: oklch(53.3% 0.096 101.0);
Tailwind
colors: {
  custom: {
    50: '#a39761',
    500: '#796e21',
    950: '#000000',
  },
}
SCSS
$custom: #796e21;
$custom-light: #a39761;
$custom-dark: #000000;
JSON
{
  "hex": "#796e21",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 33
  },
  "hsl": {
    "h": 52.5,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5334,
    "c": 0.09636,
    "h": 101
  },
  "luminance": 0.15327
}

Semantic roles & 50–950 ramp

primary
#796E21
secondary
#4A56AC
accent
#5BE047
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796E21

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

Preview Lab → · Contrast checker → · Palette generator →

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