#797717#797717

#797717 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.4% C 0.111 H 108.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#797717
RGBrgb(121, 119, 23)
HSLhsl(59, 68%, 28%)
HSVhsv(59, 81%, 47%)
CMYKcmyk(0%, 1.7%, 81%, 52.5%)
CIE-LABlab(48.66, -10.71, 48.61)
CIE-LCHlch(48.66, 49.78, 102.42°)
OKLaboklab(55.38% -0.0349 0.1058)
OKLCHoklch(55.38% 0.111 108.3)
XYZxyz(14.6372, 17.3210, 3.3827)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797717 #171979
analogous
#794617 #797717 #4A7917
triadic
#797717 #177977 #771779
tetradic
#797717 #177946 #171979 #79174A
square
#797717 #177946 #171979 #79174A
split-complementary
#797717 #174A79 #461779
monochromatic
#1A1905 #46440D #797717 #ACAA21 #D8D532

Accessibility & contrast

On white

4.70
#797717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#797717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797717
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797717#FFFFFF#000000##FFFFFF
##7977171.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#826F65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797717;
/* rgb */ color: rgb(121, 119, 23);
/* oklch */ color: oklch(55.4% 0.111 108.3);
Tailwind
colors: {
  custom: {
    50: '#a39e5e',
    500: '#797717',
    950: '#000000',
  },
}
SCSS
$custom: #797717;
$custom-light: #a39e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797717",
  "rgb": {
    "r": 121,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 58.776,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55376,
    "c": 0.11138,
    "h": 108.3
  },
  "luminance": 0.1732
}

Semantic roles & 50–950 ramp

primary
#797717
secondary
#3E40AE
accent
#40EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797717

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

Preview Lab → · Contrast checker → · Palette generator →

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