#796818#796818

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

Color values

HEX#796818
RGBrgb(121, 104, 24)
HSLhsl(49, 67%, 28%)
HSVhsv(49, 80%, 47%)
CMYKcmyk(0%, 14%, 80.2%, 52.5%)
CIE-LABlab(44.28, -2.20, 44.29)
CIE-LCHlch(44.28, 44.34, 92.85°)
OKLaboklab(51.89% -0.0109 0.0967)
OKLCHoklch(51.89% 0.097 96.5)
XYZxyz(13.0010, 14.0322, 2.8877)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796818 #182979
analogous
#793718 #796818 #597918
triadic
#796818 #187968 #681879
tetradic
#796818 #187937 #182979 #791859
square
#796818 #187937 #182979 #791859
split-complementary
#796818 #185979 #371879
monochromatic
#1A1605 #463C0E #796818 #AC9422 #D7BA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796818#FFFFFF#000000##FFFFFF
##7968181.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)
#736607
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#835F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796818;
/* rgb */ color: rgb(121, 104, 24);
/* oklch */ color: oklch(51.9% 0.097 96.5);
Tailwind
colors: {
  custom: {
    50: '#a3925c',
    500: '#796818',
    950: '#000000',
  },
}
SCSS
$custom: #796818;
$custom-light: #a3925c;
$custom-dark: #000000;
JSON
{
  "hex": "#796818",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 49.485,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51893,
    "c": 0.09733,
    "h": 96.5
  },
  "luminance": 0.14032
}

Semantic roles & 50–950 ramp

primary
#796818
secondary
#3F52AE
accent
#5CEA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #796818

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

Preview Lab → · Contrast checker → · Palette generator →

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