#797017#797017

#797017 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.7% C 0.105 H 103.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#797017
RGBrgb(121, 112, 23)
HSLhsl(54, 68%, 28%)
HSVhsv(54, 81%, 47%)
CMYKcmyk(0%, 7.4%, 81%, 52.5%)
CIE-LABlab(46.60, -6.81, 46.76)
CIE-LCHlch(46.60, 47.25, 98.29°)
OKLaboklab(53.73% -0.024 0.1018)
OKLCHoklch(53.73% 0.105 103.3)
XYZxyz(13.8346, 15.7157, 3.1152)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797017 #172079
analogous
#793F17 #797017 #517917
triadic
#797017 #177970 #701779
tetradic
#797017 #17793F #172079 #791751
square
#797017 #17793F #172079 #791751
split-complementary
#797017 #175179 #3F1779
monochromatic
#1A1805 #46400D #797017 #ACA021 #D8C932

Accessibility & contrast

On white

5.07
#797017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#797017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797017
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797017#FFFFFF#000000##FFFFFF
##7970171.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#7E701E
Tritanopia (blue-blind)
#83685F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #797017;
/* rgb */ color: rgb(121, 112, 23);
/* oklch */ color: oklch(53.7% 0.105 103.3);
Tailwind
colors: {
  custom: {
    50: '#a3985d',
    500: '#797017',
    950: '#000000',
  },
}
SCSS
$custom: #797017;
$custom-light: #a3985d;
$custom-dark: #000000;
JSON
{
  "hex": "#797017",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 54.49,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53733,
    "c": 0.10459,
    "h": 103.3
  },
  "luminance": 0.15715
}

Semantic roles & 50–950 ramp

primary
#797017
secondary
#3E48AE
accent
#4DEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #797017

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

Preview Lab → · Contrast checker → · Palette generator →

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