#797117#797117

#797117 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.106 H 104.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#797117
RGBrgb(121, 113, 23)
HSLhsl(55, 68%, 28%)
HSVhsv(55, 81%, 47%)
CMYKcmyk(0%, 6.6%, 81%, 52.5%)
CIE-LABlab(46.89, -7.37, 47.02)
CIE-LCHlch(46.89, 47.60, 98.91°)
OKLaboklab(53.97% -0.0256 0.1024)
OKLCHoklch(53.97% 0.106 104.1)
XYZxyz(13.9456, 15.9376, 3.1521)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797117 #171F79
analogous
#794017 #797117 #507917
triadic
#797117 #177971 #711779
tetradic
#797117 #177940 #171F79 #791750
square
#797117 #177940 #171F79 #791750
split-complementary
#797117 #175079 #401779
monochromatic
#1A1805 #46410D #797117 #ACA121 #D8CB32

Accessibility & contrast

On white

5.02
#797117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#797117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797117
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797117#FFFFFF#000000##FFFFFF
##7971171.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#836960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797117;
/* rgb */ color: rgb(121, 113, 23);
/* oklch */ color: oklch(54.0% 0.106 104.1);
Tailwind
colors: {
  custom: {
    50: '#a3995d',
    500: '#797117',
    950: '#000000',
  },
}
SCSS
$custom: #797117;
$custom-light: #a3995d;
$custom-dark: #000000;
JSON
{
  "hex": "#797117",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 55.102,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53966,
    "c": 0.10551,
    "h": 104.1
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#797117
secondary
#3E47AE
accent
#4BEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #797117

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

Preview Lab → · Contrast checker → · Palette generator →

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