#796117#796117

#796117 is a mid, moderate yellow. Relative luminance 0.127; OKLCH L 50.3% C 0.093 H 89.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#796117
RGBrgb(121, 97, 23)
HSLhsl(45, 68%, 28%)
HSVhsv(45, 81%, 47%)
CMYKcmyk(0%, 19.8%, 81%, 52.5%)
CIE-LABlab(42.27, 1.84, 42.81)
CIE-LCHlch(42.27, 42.85, 87.55°)
OKLaboklab(50.31% 0.0005 0.0933)
OKLCHoklch(50.31% 0.093 89.7)
XYZxyz(12.3152, 12.6770, 2.6087)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796117 #172F79
analogous
#793017 #796117 #607917
triadic
#796117 #177961 #611779
tetradic
#796117 #177930 #172F79 #791760
square
#796117 #177930 #172F79 #791760
split-complementary
#796117 #176079 #301779
monochromatic
#1A1505 #46380D #796117 #AC8A21 #D8AF32

Accessibility & contrast

On white

5.94
#796117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#796117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796117
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796117#FFFFFF#000000##FFFFFF
##7961171.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6008
Deuteranopia (green-blind)
#73671B
Tritanopia (blue-blind)
#845853
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #796117;
/* rgb */ color: rgb(121, 97, 23);
/* oklch */ color: oklch(50.3% 0.093 89.7);
Tailwind
colors: {
  custom: {
    50: '#a38d5b',
    500: '#796117',
    950: '#000000',
  },
}
SCSS
$custom: #796117;
$custom-light: #a38d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796117",
  "rgb": {
    "r": 121,
    "g": 97,
    "b": 23
  },
  "hsl": {
    "h": 45.306,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50306,
    "c": 0.09333,
    "h": 89.7
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#796117
secondary
#3E59AE
accent
#68EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796117

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

Preview Lab → · Contrast checker → · Palette generator →

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