#798517#798517

#798517 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.127 H 116.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#798517
RGBrgb(121, 133, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 52%)
CMYKcmyk(9%, 0%, 82.7%, 47.8%)
CIE-LABlab(52.84, -18.22, 52.32)
CIE-LCHlch(52.84, 55.40, 109.20°)
OKLaboklab(58.72% -0.0557 0.1137)
OKLCHoklch(58.72% 0.127 116.1)
XYZxyz(16.4278, 20.9021, 3.9796)
Luminance0.2090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798517 #231785
analogous
#855A17 #798517 #428517
triadic
#798517 #177985 #851779
tetradic
#798517 #17855A #231785 #851742
square
#798517 #17855A #231785 #851742
split-complementary
#798517 #174285 #5A1785
monochromatic
#1A1D05 #4A510E #798517 #A8B920 #CBDD3A

Accessibility & contrast

On white

4.05
#798517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#798517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798517
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798517#FFFFFF#000000##000000
##7985171.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#817D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798517;
/* rgb */ color: rgb(121, 133, 23);
/* oklch */ color: oklch(58.7% 0.127 116.1);
Tailwind
colors: {
  custom: {
    50: '#a3a860',
    500: '#798517',
    950: '#000000',
  },
}
SCSS
$custom: #798517;
$custom-light: #a3a860;
$custom-dark: #000000;
JSON
{
  "hex": "#798517",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 66.545,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58724,
    "c": 0.12662,
    "h": 116.1
  },
  "luminance": 0.20902
}

Semantic roles & 50–950 ramp

primary
#798517
secondary
#4C3FB9
accent
#3BED4E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798517

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

Preview Lab → · Contrast checker → · Palette generator →

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