#797917#797917

#797917 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.113 H 109.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#797917
RGBrgb(121, 121, 23)
HSLhsl(60, 68%, 28%)
HSVhsv(60, 81%, 47%)
CMYKcmyk(0%, 0%, 81%, 52.5%)
CIE-LABlab(49.26, -11.81, 49.14)
CIE-LCHlch(49.26, 50.54, 103.51°)
OKLaboklab(55.85% -0.038 0.1069)
OKLCHoklch(55.85% 0.113 109.6)
XYZxyz(14.8778, 17.8020, 3.4629)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797917 #171779
analogous
#794817 #797917 #487917
triadic
#797917 #177979 #791779
tetradic
#797917 #177948 #171779 #791748
square
#797917 #177948 #171779 #791748
split-complementary
#797917 #174879 #481779
monochromatic
#1A1A05 #46460D #797917 #ACAC21 #D8D832

Accessibility & contrast

On white

4.60
#797917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#797917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797917
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797917#FFFFFF#000000##FFFFFF
##7979171.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837400
Deuteranopia (green-blind)
#857620
Tritanopia (blue-blind)
#827167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797917;
/* rgb */ color: rgb(121, 121, 23);
/* oklch */ color: oklch(55.9% 0.113 109.6);
Tailwind
colors: {
  custom: {
    50: '#a39f5e',
    500: '#797917',
    950: '#000000',
  },
}
SCSS
$custom: #797917;
$custom-light: #a39f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797917",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5585,
    "c": 0.11344,
    "h": 109.6
  },
  "luminance": 0.17802
}

Semantic roles & 50–950 ramp

primary
#797917
secondary
#3E3EAE
accent
#3DEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797917

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

Preview Lab → · Contrast checker → · Palette generator →

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