#796817#796817

#796817 is a mid, moderate yellow. Relative luminance 0.140; OKLCH L 51.9% C 0.098 H 96.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#796817
RGBrgb(121, 104, 23)
HSLhsl(50, 68%, 28%)
HSVhsv(50, 81%, 47%)
CMYKcmyk(0%, 14%, 81%, 52.5%)
CIE-LABlab(44.27, -2.24, 44.65)
CIE-LCHlch(44.27, 44.71, 92.88°)
OKLaboklab(51.89% -0.0112 0.0973)
OKLCHoklch(51.89% 0.098 96.5)
XYZxyz(12.9908, 14.0281, 2.8339)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796817 #172879
analogous
#793717 #796817 #597917
triadic
#796817 #177968 #681779
tetradic
#796817 #177937 #172879 #791759
square
#796817 #177937 #172879 #791759
split-complementary
#796817 #175979 #371779
monochromatic
#1A1605 #463C0D #796817 #AC9421 #D8BB32

Accessibility & contrast

On white

5.52
#796817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#796817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796817
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796817#FFFFFF#000000##FFFFFF
##7968171.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#835F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796817;
/* rgb */ color: rgb(121, 104, 23);
/* oklch */ color: oklch(51.9% 0.098 96.5);
Tailwind
colors: {
  custom: {
    50: '#a3925c',
    500: '#796817',
    950: '#000000',
  },
}
SCSS
$custom: #796817;
$custom-light: #a3925c;
$custom-dark: #000000;
JSON
{
  "hex": "#796817",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 49.592,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51887,
    "c": 0.0979,
    "h": 96.5
  },
  "luminance": 0.14027
}

Semantic roles & 50–950 ramp

primary
#796817
secondary
#3E51AE
accent
#5BEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #796817

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

Preview Lab → · Contrast checker → · Palette generator →

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