#796918#796918

#796918 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.1% C 0.098 H 97.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#796918
RGBrgb(121, 105, 24)
HSLhsl(50, 67%, 28%)
HSVhsv(50, 80%, 47%)
CMYKcmyk(0%, 13.2%, 80.2%, 52.5%)
CIE-LABlab(44.57, -2.78, 44.55)
CIE-LCHlch(44.57, 44.64, 93.57°)
OKLaboklab(52.12% -0.0126 0.0973)
OKLCHoklch(52.12% 0.098 97.4)
XYZxyz(13.1023, 14.2347, 2.9214)
Luminance0.1423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796918 #182879
analogous
#793818 #796918 #587918
triadic
#796918 #187969 #691879
tetradic
#796918 #187938 #182879 #791858
square
#796918 #187938 #182879 #791858
split-complementary
#796918 #185879 #381879
monochromatic
#1A1605 #463D0E #796918 #AC9522 #D7BC35

Accessibility & contrast

On white

5.46
#796918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#796918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796918
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796918#FFFFFF#000000##FFFFFF
##7969181.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746607
Deuteranopia (green-blind)
#796C1E
Tritanopia (blue-blind)
#83605A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796918;
/* rgb */ color: rgb(121, 105, 24);
/* oklch */ color: oklch(52.1% 0.098 97.4);
Tailwind
colors: {
  custom: {
    50: '#a3935c',
    500: '#796918',
    950: '#000000',
  },
}
SCSS
$custom: #796918;
$custom-light: #a3935c;
$custom-dark: #000000;
JSON
{
  "hex": "#796918",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 50.103,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52122,
    "c": 0.09809,
    "h": 97.4
  },
  "luminance": 0.14234
}

Semantic roles & 50–950 ramp

primary
#796918
secondary
#3F51AE
accent
#5AEA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796918

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

Preview Lab → · Contrast checker → · Palette generator →

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