#796717#796717

#796717 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.7% C 0.097 H 95.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#796717
RGBrgb(121, 103, 23)
HSLhsl(49, 68%, 28%)
HSVhsv(49, 81%, 47%)
CMYKcmyk(0%, 14.9%, 81%, 52.5%)
CIE-LABlab(43.99, -1.67, 44.39)
CIE-LCHlch(43.99, 44.42, 92.15°)
OKLaboklab(51.66% -0.0095 0.0967)
OKLCHoklch(51.66% 0.097 95.6)
XYZxyz(12.8908, 13.8280, 2.8005)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796717 #172979
analogous
#793617 #796717 #5A7917
triadic
#796717 #177967 #671779
tetradic
#796717 #177936 #172979 #79175A
square
#796717 #177936 #172979 #79175A
split-complementary
#796717 #175A79 #361779
monochromatic
#1A1605 #463B0D #796717 #AC9321 #D8BA32

Accessibility & contrast

On white

5.58
#796717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#796717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796717
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796717#FFFFFF#000000##FFFFFF
##7967171.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#835E58
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796717;
/* rgb */ color: rgb(121, 103, 23);
/* oklch */ color: oklch(51.7% 0.097 95.6);
Tailwind
colors: {
  custom: {
    50: '#a3925b',
    500: '#796717',
    950: '#000000',
  },
}
SCSS
$custom: #796717;
$custom-light: #a3925b;
$custom-dark: #000000;
JSON
{
  "hex": "#796717",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 48.98,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.09717,
    "h": 95.6
  },
  "luminance": 0.13827
}

Semantic roles & 50–950 ramp

primary
#796717
secondary
#3E52AE
accent
#5DEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796717

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

Preview Lab → · Contrast checker → · Palette generator →

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