#797318#797318

#797318 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.4% C 0.107 H 105.5°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797318
RGBrgb(121, 115, 24)
HSLhsl(56, 67%, 28%)
HSVhsv(56, 80%, 47%)
CMYKcmyk(0%, 5%, 80.2%, 52.5%)
CIE-LABlab(47.49, -8.45, 47.22)
CIE-LCHlch(47.49, 47.97, 100.15°)
OKLaboklab(54.44% -0.0285 0.103)
OKLCHoklch(54.44% 0.107 105.5)
XYZxyz(14.1814, 16.3929, 3.2811)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797318 #181E79
analogous
#794218 #797318 #4E7918
triadic
#797318 #187973 #731879
tetradic
#797318 #187942 #181E79 #79184E
square
#797318 #187942 #181E79 #79184E
split-complementary
#797318 #184E79 #421879
monochromatic
#1A1805 #46420E #797318 #ACA422 #D7CD35

Accessibility & contrast

On white

4.91
#797318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#797318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797318
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797318#FFFFFF#000000##FFFFFF
##7973181.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#836B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797318;
/* rgb */ color: rgb(121, 115, 24);
/* oklch */ color: oklch(54.4% 0.107 105.5);
Tailwind
colors: {
  custom: {
    50: '#a39b5e',
    500: '#797318',
    950: '#000000',
  },
}
SCSS
$custom: #797318;
$custom-light: #a39b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797318",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 56.289,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5444,
    "c": 0.10686,
    "h": 105.5
  },
  "luminance": 0.16392
}

Semantic roles & 50–950 ramp

primary
#797318
secondary
#3F46AE
accent
#49EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797318

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

Preview Lab → · Contrast checker → · Palette generator →

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