#797817#797817

#797817 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.6% C 0.112 H 108.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#797817
RGBrgb(121, 120, 23)
HSLhsl(59, 68%, 28%)
HSVhsv(59, 81%, 47%)
CMYKcmyk(0%, 0.8%, 81%, 52.5%)
CIE-LABlab(48.96, -11.26, 48.88)
CIE-LCHlch(48.96, 50.16, 102.97°)
OKLaboklab(55.61% -0.0365 0.1063)
OKLCHoklch(55.61% 0.112 108.9)
XYZxyz(14.7569, 17.5602, 3.4226)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797817 #171879
analogous
#794717 #797817 #497917
triadic
#797817 #177978 #781779
tetradic
#797817 #177947 #171879 #791749
square
#797817 #177947 #171879 #791749
split-complementary
#797817 #174979 #471779
monochromatic
#1A1A05 #46450D #797817 #ACAB21 #D8D632

Accessibility & contrast

On white

4.65
#797817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#797817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797817
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797817#FFFFFF#000000##FFFFFF
##7978171.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#847620
Tritanopia (blue-blind)
#827066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797817;
/* rgb */ color: rgb(121, 120, 23);
/* oklch */ color: oklch(55.6% 0.112 108.9);
Tailwind
colors: {
  custom: {
    50: '#a39e5e',
    500: '#797817',
    950: '#000000',
  },
}
SCSS
$custom: #797817;
$custom-light: #a39e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797817",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 59.388,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55613,
    "c": 0.1124,
    "h": 108.9
  },
  "luminance": 0.1756
}

Semantic roles & 50–950 ramp

primary
#797817
secondary
#3E3FAE
accent
#3FEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797817

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

Preview Lab → · Contrast checker → · Palette generator →

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