#798417#798417

#798417 is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.125 H 115.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#798417
RGBrgb(121, 132, 23)
HSLhsl(66, 70%, 30%)
HSVhsv(66, 83%, 52%)
CMYKcmyk(8.3%, 0%, 82.6%, 48.2%)
CIE-LABlab(52.54, -17.69, 52.06)
CIE-LCHlch(52.54, 54.98, 108.77°)
OKLaboklab(58.48% -0.0543 0.1131)
OKLCHoklch(58.48% 0.125 115.6)
XYZxyz(16.2915, 20.6296, 3.9341)
Luminance0.2063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798417 #221784
analogous
#845817 #798417 #428417
triadic
#798417 #177984 #841779
tetradic
#798417 #178458 #221784 #841742
square
#798417 #178458 #221784 #841742
split-complementary
#798417 #174284 #581784
monochromatic
#191C05 #49500E #798417 #A9B820 #CCDC39

Accessibility & contrast

On white

4.10
#798417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#798417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798417
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798417#FFFFFF#000000##000000
##7984171.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E22
Tritanopia (blue-blind)
#817C70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798417;
/* rgb */ color: rgb(121, 132, 23);
/* oklch */ color: oklch(58.5% 0.125 115.6);
Tailwind
colors: {
  custom: {
    50: '#a3a760',
    500: '#798417',
    950: '#000000',
  },
}
SCSS
$custom: #798417;
$custom-light: #a3a760;
$custom-dark: #000000;
JSON
{
  "hex": "#798417",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 66.055,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.12549,
    "h": 115.6
  },
  "luminance": 0.20629
}

Semantic roles & 50–950 ramp

primary
#798417
secondary
#4B3FB8
accent
#3BED4D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798417

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

Preview Lab → · Contrast checker → · Palette generator →

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