#797418#797418

#797418 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.108 H 106.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797418
RGBrgb(121, 116, 24)
HSLhsl(57, 67%, 28%)
HSVhsv(57, 80%, 47%)
CMYKcmyk(0%, 4.1%, 80.2%, 52.5%)
CIE-LABlab(47.78, -9.01, 47.49)
CIE-LCHlch(47.78, 48.34, 100.74°)
OKLaboklab(54.68% -0.0301 0.1036)
OKLCHoklch(54.68% 0.108 106.2)
XYZxyz(14.2960, 16.6222, 3.3193)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797418 #181D79
analogous
#794318 #797418 #4D7918
triadic
#797418 #187974 #741879
tetradic
#797418 #187943 #181D79 #79184D
square
#797418 #187943 #181D79 #79184D
split-complementary
#797418 #184D79 #431879
monochromatic
#1A1805 #46430E #797418 #ACA522 #D7CE35

Accessibility & contrast

On white

4.86
#797418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#797418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797418
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797418#FFFFFF#000000##FFFFFF
##7974181.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F02
Deuteranopia (green-blind)
#817320
Tritanopia (blue-blind)
#826C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797418;
/* rgb */ color: rgb(121, 116, 24);
/* oklch */ color: oklch(54.7% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a39b5e',
    500: '#797418',
    950: '#000000',
  },
}
SCSS
$custom: #797418;
$custom-light: #a39b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797418",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 56.907,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.10784,
    "h": 106.2
  },
  "luminance": 0.16622
}

Semantic roles & 50–950 ramp

primary
#797418
secondary
#3F45AE
accent
#47EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797418

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

Preview Lab → · Contrast checker → · Palette generator →

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