#797218#797218

#797218 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.2% C 0.106 H 104.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#797218
RGBrgb(121, 114, 24)
HSLhsl(56, 67%, 28%)
HSVhsv(56, 80%, 47%)
CMYKcmyk(0%, 5.8%, 80.2%, 52.5%)
CIE-LABlab(47.19, -7.89, 46.95)
CIE-LCHlch(47.19, 47.61, 99.54°)
OKLaboklab(54.21% -0.027 0.1024)
OKLCHoklch(54.21% 0.106 104.8)
XYZxyz(14.0680, 16.1661, 3.2433)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797218 #181F79
analogous
#794118 #797218 #4F7918
triadic
#797218 #187972 #721879
tetradic
#797218 #187941 #181F79 #79184F
square
#797218 #187941 #181F79 #79184F
split-complementary
#797218 #184F79 #411879
monochromatic
#1A1805 #46420E #797218 #ACA222 #D7CB35

Accessibility & contrast

On white

4.96
#797218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#797218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797218
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797218#FFFFFF#000000##FFFFFF
##7972181.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E03
Deuteranopia (green-blind)
#7F721F
Tritanopia (blue-blind)
#836A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797218;
/* rgb */ color: rgb(121, 114, 24);
/* oklch */ color: oklch(54.2% 0.106 104.8);
Tailwind
colors: {
  custom: {
    50: '#a39a5d',
    500: '#797218',
    950: '#000000',
  },
}
SCSS
$custom: #797218;
$custom-light: #a39a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797218",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 55.67,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54206,
    "c": 0.1059,
    "h": 104.8
  },
  "luminance": 0.16166
}

Semantic roles & 50–950 ramp

primary
#797218
secondary
#3F47AE
accent
#4AEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797218

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

Preview Lab → · Contrast checker → · Palette generator →

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