#796A18#796A18

#796A18 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.4% C 0.099 H 98.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#796A18
RGBrgb(121, 106, 24)
HSLhsl(51, 67%, 28%)
HSVhsv(51, 80%, 47%)
CMYKcmyk(0%, 12.4%, 80.2%, 52.5%)
CIE-LABlab(44.86, -3.35, 44.82)
CIE-LCHlch(44.86, 44.94, 94.28°)
OKLaboklab(52.35% -0.0142 0.0979)
OKLCHoklch(52.35% 0.099 98.3)
XYZxyz(13.2047, 14.4396, 2.9556)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A18 #182779
analogous
#793918 #796A18 #577918
triadic
#796A18 #18796A #6A1879
tetradic
#796A18 #187939 #182779 #791857
square
#796A18 #187939 #182779 #791857
split-complementary
#796A18 #185779 #391879
monochromatic
#1A1605 #463D0E #796A18 #AC9722 #D7BE35

Accessibility & contrast

On white

5.40
#796A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#796A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A18
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A18#FFFFFF#000000##FFFFFF
##796A181.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756706
Deuteranopia (green-blind)
#796C1E
Tritanopia (blue-blind)
#83615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a18;
/* rgb */ color: rgb(121, 106, 24);
/* oklch */ color: oklch(52.4% 0.099 98.3);
Tailwind
colors: {
  custom: {
    50: '#a3945c',
    500: '#796a18',
    950: '#000000',
  },
}
SCSS
$custom: #796a18;
$custom-light: #a3945c;
$custom-dark: #000000;
JSON
{
  "hex": "#796a18",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 50.722,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52351,
    "c": 0.09887,
    "h": 98.3
  },
  "luminance": 0.14439
}

Semantic roles & 50–950 ramp

primary
#796A18
secondary
#3F50AE
accent
#59EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796A18

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

Preview Lab → · Contrast checker → · Palette generator →

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