#796920#796920

#796920 is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.2% C 0.093 H 96.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#796920
RGBrgb(121, 105, 32)
HSLhsl(49, 58%, 30%)
HSVhsv(49, 74%, 47%)
CMYKcmyk(0%, 13.2%, 73.6%, 52.5%)
CIE-LABlab(44.62, -2.38, 41.38)
CIE-LCHlch(44.62, 41.45, 93.30°)
OKLaboklab(52.18% -0.0105 0.0922)
OKLCHoklch(52.18% 0.093 96.5)
XYZxyz(13.1981, 14.2731, 3.4260)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796920 #203079
analogous
#793C20 #796920 #5D7920
triadic
#796920 #207969 #692079
tetradic
#796920 #20793C #203079 #79205D
square
#796920 #20793C #203079 #79205D
split-complementary
#796920 #205D79 #3C2079
monochromatic
#181506 #493F13 #796920 #A9932D #CEB545

Accessibility & contrast

On white

5.45
#796920 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#796920 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796920
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796920#FFFFFF#000000##FFFFFF
##7969201.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746715
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#83615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796920;
/* rgb */ color: rgb(121, 105, 32);
/* oklch */ color: oklch(52.2% 0.093 96.5);
Tailwind
colors: {
  custom: {
    50: '#a39360',
    500: '#796920',
    950: '#000000',
  },
}
SCSS
$custom: #796920;
$custom-light: #a39360;
$custom-dark: #000000;
JSON
{
  "hex": "#796920",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 32
  },
  "hsl": {
    "h": 49.213,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.52182,
    "c": 0.09281,
    "h": 96.5
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#796920
secondary
#495AAC
accent
#62E146
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796920

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

Preview Lab → · Contrast checker → · Palette generator →

#796920 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva