#797417#797417

#797417 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#797417
RGBrgb(121, 116, 23)
HSLhsl(57, 68%, 28%)
HSVhsv(57, 81%, 47%)
CMYKcmyk(0%, 4.1%, 81%, 52.5%)
CIE-LABlab(47.78, -9.05, 47.82)
CIE-LCHlch(47.78, 48.67, 100.72°)
OKLaboklab(54.67% -0.0303 0.1041)
OKLCHoklch(54.67% 0.108 106.2)
XYZxyz(14.2858, 16.6181, 3.2656)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797417 #171C79
analogous
#794317 #797417 #4D7917
triadic
#797417 #177974 #741779
tetradic
#797417 #177943 #171C79 #79174D
square
#797417 #177943 #171C79 #79174D
split-complementary
#797417 #174D79 #431779
monochromatic
#1A1905 #46430D #797417 #ACA521 #D8D032

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797417#FFFFFF#000000##FFFFFF
##7974171.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)
#7F6F00
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#836C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797417;
/* rgb */ color: rgb(121, 116, 23);
/* oklch */ color: oklch(54.7% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a39b5d',
    500: '#797417',
    950: '#000000',
  },
}
SCSS
$custom: #797417;
$custom-light: #a39b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797417",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 56.939,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54669,
    "c": 0.10838,
    "h": 106.2
  },
  "luminance": 0.16618
}

Semantic roles & 50–950 ramp

primary
#797417
secondary
#3E43AE
accent
#46EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797417

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

Preview Lab → · Contrast checker → · Palette generator →

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