#796D18#796D18

#796D18 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.0% C 0.101 H 100.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#796D18
RGBrgb(121, 109, 24)
HSLhsl(53, 67%, 28%)
HSVhsv(53, 80%, 47%)
CMYKcmyk(0%, 9.9%, 80.2%, 52.5%)
CIE-LABlab(45.73, -5.07, 45.62)
CIE-LCHlch(45.73, 45.90, 96.34°)
OKLaboklab(53.04% -0.019 0.0996)
OKLCHoklch(53.04% 0.101 100.8)
XYZxyz(13.5193, 15.0688, 3.0604)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D18 #182479
analogous
#793C18 #796D18 #547918
triadic
#796D18 #18796D #6D1879
tetradic
#796D18 #18793C #182479 #791854
square
#796D18 #18793C #182479 #791854
split-complementary
#796D18 #185479 #3C1879
monochromatic
#1A1705 #463F0E #796D18 #AC9B22 #D7C335

Accessibility & contrast

On white

5.23
#796D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#796D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D18#FFFFFF#000000##FFFFFF
##796D181.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A05
Deuteranopia (green-blind)
#7B6E1E
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d18;
/* rgb */ color: rgb(121, 109, 24);
/* oklch */ color: oklch(53.0% 0.101 100.8);
Tailwind
colors: {
  custom: {
    50: '#a3965d',
    500: '#796d18',
    950: '#000000',
  },
}
SCSS
$custom: #796d18;
$custom-light: #a3965d;
$custom-dark: #000000;
JSON
{
  "hex": "#796d18",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 52.577,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53042,
    "c": 0.10137,
    "h": 100.8
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#796D18
secondary
#3F4DAE
accent
#53EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796D18

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

Preview Lab → · Contrast checker → · Palette generator →

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