#797217#797217

#797217 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.2% C 0.106 H 104.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#797217
RGBrgb(121, 114, 23)
HSLhsl(56, 68%, 28%)
HSVhsv(56, 81%, 47%)
CMYKcmyk(0%, 5.8%, 81%, 52.5%)
CIE-LABlab(47.19, -7.93, 47.29)
CIE-LCHlch(47.19, 47.95, 99.52°)
OKLaboklab(54.2% -0.0272 0.1029)
OKLCHoklch(54.2% 0.106 104.8)
XYZxyz(14.0577, 16.1620, 3.1895)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797217 #171E79
analogous
#794117 #797217 #4F7917
triadic
#797217 #177972 #721779
tetradic
#797217 #177941 #171E79 #79174F
square
#797217 #177941 #171E79 #79174F
split-complementary
#797217 #174F79 #411779
monochromatic
#1A1805 #46420D #797217 #ACA221 #D8CC32

Accessibility & contrast

On white

4.96
#797217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#797217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797217
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797217#FFFFFF#000000##FFFFFF
##7972171.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#7F721E
Tritanopia (blue-blind)
#836A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797217;
/* rgb */ color: rgb(121, 114, 23);
/* oklch */ color: oklch(54.2% 0.106 104.8);
Tailwind
colors: {
  custom: {
    50: '#a39a5d',
    500: '#797217',
    950: '#000000',
  },
}
SCSS
$custom: #797217;
$custom-light: #a39a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797217",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 55.714,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.542,
    "c": 0.10645,
    "h": 104.8
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#797217
secondary
#3E46AE
accent
#49EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797217

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

Preview Lab → · Contrast checker → · Palette generator →

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