#797918#797918

#797918 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.113 H 109.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#797918
RGBrgb(121, 121, 24)
HSLhsl(60, 67%, 28%)
HSVhsv(60, 80%, 47%)
CMYKcmyk(0%, 0%, 80.2%, 52.5%)
CIE-LABlab(49.26, -11.77, 48.82)
CIE-LCHlch(49.26, 50.22, 103.55°)
OKLaboklab(55.86% -0.0378 0.1064)
OKLCHoklch(55.86% 0.113 109.6)
XYZxyz(14.8880, 17.8061, 3.5167)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797918 #181879
analogous
#794818 #797918 #487918
triadic
#797918 #187979 #791879
tetradic
#797918 #187948 #181879 #791848
square
#797918 #187948 #181879 #791848
split-complementary
#797918 #184879 #481879
monochromatic
#1A1A05 #46460E #797918 #ACAC22 #D7D735

Accessibility & contrast

On white

4.60
#797918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#797918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797918
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797918#FFFFFF#000000##FFFFFF
##7979181.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837400
Deuteranopia (green-blind)
#857620
Tritanopia (blue-blind)
#827167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797918;
/* rgb */ color: rgb(121, 121, 24);
/* oklch */ color: oklch(55.9% 0.113 109.6);
Tailwind
colors: {
  custom: {
    50: '#a39f5e',
    500: '#797918',
    950: '#000000',
  },
}
SCSS
$custom: #797918;
$custom-light: #a39f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797918",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.11292,
    "h": 109.6
  },
  "luminance": 0.17806
}

Semantic roles & 50–950 ramp

primary
#797918
secondary
#3F3FAE
accent
#3EEA3E
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797918

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

Preview Lab → · Contrast checker → · Palette generator →

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