#796C18#796C18

#796C18 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.8% C 0.101 H 100.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796C18
RGBrgb(121, 108, 24)
HSLhsl(52, 67%, 28%)
HSVhsv(52, 80%, 47%)
CMYKcmyk(0%, 10.7%, 80.2%, 52.5%)
CIE-LABlab(45.44, -4.50, 45.35)
CIE-LCHlch(45.44, 45.57, 95.67°)
OKLaboklab(52.81% -0.0174 0.099)
OKLCHoklch(52.81% 0.101 100)
XYZxyz(13.4133, 14.8567, 3.0251)
Luminance0.1486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C18 #182579
analogous
#793B18 #796C18 #557918
triadic
#796C18 #18796C #6C1879
tetradic
#796C18 #18793B #182579 #791855
square
#796C18 #18793B #182579 #791855
split-complementary
#796C18 #185579 #3B1879
monochromatic
#1A1705 #463E0E #796C18 #AC9A22 #D7C135

Accessibility & contrast

On white

5.29
#796C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#796C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C18
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C18#FFFFFF#000000##FFFFFF
##796C181.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776905
Deuteranopia (green-blind)
#7B6E1E
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c18;
/* rgb */ color: rgb(121, 108, 24);
/* oklch */ color: oklch(52.8% 0.101 100.0);
Tailwind
colors: {
  custom: {
    50: '#a3955d',
    500: '#796c18',
    950: '#000000',
  },
}
SCSS
$custom: #796c18;
$custom-light: #a3955d;
$custom-dark: #000000;
JSON
{
  "hex": "#796c18",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 24
  },
  "hsl": {
    "h": 51.959,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52811,
    "c": 0.10051,
    "h": 100
  },
  "luminance": 0.14856
}

Semantic roles & 50–950 ramp

primary
#796C18
secondary
#3F4EAE
accent
#55EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796C18

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

Preview Lab → · Contrast checker → · Palette generator →

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