#796B17#796B17

#796B17 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.100 H 99.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#796B17
RGBrgb(121, 107, 23)
HSLhsl(51, 68%, 28%)
HSVhsv(51, 81%, 47%)
CMYKcmyk(0%, 11.6%, 81%, 52.5%)
CIE-LABlab(45.14, -3.97, 45.44)
CIE-LCHlch(45.14, 45.61, 94.99°)
OKLaboklab(52.57% -0.016 0.099)
OKLCHoklch(52.57% 0.1 99.2)
XYZxyz(13.2982, 14.6429, 2.9363)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B17 #172579
analogous
#793A17 #796B17 #567917
triadic
#796B17 #17796B #6B1779
tetradic
#796B17 #17793A #172579 #791756
square
#796B17 #17793A #172579 #791756
split-complementary
#796B17 #175679 #3A1779
monochromatic
#1A1705 #463E0D #796B17 #AC9821 #D8C032

Accessibility & contrast

On white

5.35
#796B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796B17
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B17#FFFFFF#000000##FFFFFF
##796B171.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796b17;
/* rgb */ color: rgb(121, 107, 23);
/* oklch */ color: oklch(52.6% 0.100 99.2);
Tailwind
colors: {
  custom: {
    50: '#a3955c',
    500: '#796b17',
    950: '#000000',
  },
}
SCSS
$custom: #796b17;
$custom-light: #a3955c;
$custom-dark: #000000;
JSON
{
  "hex": "#796b17",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 51.429,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52574,
    "c": 0.10025,
    "h": 99.2
  },
  "luminance": 0.14642
}

Semantic roles & 50–950 ramp

primary
#796B17
secondary
#3E4EAE
accent
#56EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796B17

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

Preview Lab → · Contrast checker → · Palette generator →

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