#796B19#796B19

#796B19 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.099 H 99.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#796B19
RGBrgb(121, 107, 25)
HSLhsl(51, 66%, 29%)
HSVhsv(51, 79%, 47%)
CMYKcmyk(0%, 11.6%, 79.3%, 52.5%)
CIE-LABlab(45.15, -3.88, 44.72)
CIE-LCHlch(45.15, 44.89, 94.96°)
OKLaboklab(52.59% -0.0156 0.0979)
OKLCHoklch(52.59% 0.099 99.1)
XYZxyz(13.3190, 14.6512, 3.0459)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B19 #192779
analogous
#793B19 #796B19 #577919
triadic
#796B19 #19796B #6B1979
tetradic
#796B19 #19793B #192779 #791957
square
#796B19 #19793B #192779 #791957
split-complementary
#796B19 #195779 #3B1979
monochromatic
#191605 #463E0F #796B19 #AC9823 #D6BE37

Accessibility & contrast

On white

5.34
#796B19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B19
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B19#FFFFFF#000000##FFFFFF
##796B191.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766808
Deuteranopia (green-blind)
#7A6D1F
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b19;
/* rgb */ color: rgb(121, 107, 25);
/* oklch */ color: oklch(52.6% 0.099 99.1);
Tailwind
colors: {
  custom: {
    50: '#a3955d',
    500: '#796b19',
    950: '#000000',
  },
}
SCSS
$custom: #796b19;
$custom-light: #a3955d;
$custom-dark: #000000;
JSON
{
  "hex": "#796b19",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 25
  },
  "hsl": {
    "h": 51.25,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52587,
    "c": 0.0991,
    "h": 99.1
  },
  "luminance": 0.14651
}

Semantic roles & 50–950 ramp

primary
#796B19
secondary
#4050AE
accent
#58E93F
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796B19

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

Preview Lab → · Contrast checker → · Palette generator →

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