#797517#797517

#797517 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.109 H 106.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797517
RGBrgb(121, 117, 23)
HSLhsl(58, 68%, 28%)
HSVhsv(58, 81%, 47%)
CMYKcmyk(0%, 3.3%, 81%, 52.5%)
CIE-LABlab(48.07, -9.61, 48.08)
CIE-LCHlch(48.07, 49.03, 101.30°)
OKLaboklab(54.9% -0.0319 0.1046)
OKLCHoklch(54.9% 0.109 106.9)
XYZxyz(14.4017, 16.8499, 3.3042)
Luminance0.1685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797517 #171B79
analogous
#794417 #797517 #4C7917
triadic
#797517 #177975 #751779
tetradic
#797517 #177944 #171B79 #79174C
square
#797517 #177944 #171B79 #79174C
split-complementary
#797517 #174C79 #441779
monochromatic
#1A1905 #46430D #797517 #ACA721 #D8D132

Accessibility & contrast

On white

4.81
#797517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#797517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797517
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797517#FFFFFF#000000##FFFFFF
##7975171.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797517;
/* rgb */ color: rgb(121, 117, 23);
/* oklch */ color: oklch(54.9% 0.109 106.9);
Tailwind
colors: {
  custom: {
    50: '#a39c5d',
    500: '#797517',
    950: '#000000',
  },
}
SCSS
$custom: #797517;
$custom-light: #a39c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797517",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 57.551,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54904,
    "c": 0.10937,
    "h": 106.9
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#797517
secondary
#3E42AE
accent
#44EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797517

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

Preview Lab → · Contrast checker → · Palette generator →

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