#796A21#796A21

#796A21 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.093 H 97.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#796A21
RGBrgb(121, 106, 33)
HSLhsl(50, 57%, 30%)
HSVhsv(50, 73%, 47%)
CMYKcmyk(0%, 12.4%, 72.7%, 52.5%)
CIE-LABlab(44.92, -2.90, 41.24)
CIE-LCHlch(44.92, 41.34, 94.03°)
OKLaboklab(52.42% -0.0119 0.0921)
OKLCHoklch(52.42% 0.093 97.4)
XYZxyz(13.3143, 14.4835, 3.5328)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A21 #213079
analogous
#793E21 #796A21 #5C7921
triadic
#796A21 #21796A #6A2179
tetradic
#796A21 #21793E #213079 #79215C
square
#796A21 #21793E #213079 #79215C
split-complementary
#796A21 #215C79 #3E2179
monochromatic
#191607 #494014 #796A21 #A9942E #CDB647

Accessibility & contrast

On white

5.39
#796A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A21
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A21#FFFFFF#000000##FFFFFF
##796A211.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756717
Deuteranopia (green-blind)
#796C25
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a21;
/* rgb */ color: rgb(121, 106, 33);
/* oklch */ color: oklch(52.4% 0.093 97.4);
Tailwind
colors: {
  custom: {
    50: '#a39461',
    500: '#796a21',
    950: '#000000',
  },
}
SCSS
$custom: #796a21;
$custom-light: #a39461;
$custom-dark: #000000;
JSON
{
  "hex": "#796a21",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 33
  },
  "hsl": {
    "h": 49.773,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52419,
    "c": 0.09289,
    "h": 97.4
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#796A21
secondary
#4A5AAC
accent
#61E047
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796A21

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

Preview Lab → · Contrast checker → · Palette generator →

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