#798017#798017

#798017 is a mid, vivid yellow. Relative luminance 0.196; OKLCH L 57.5% C 0.121 H 113.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#798017
RGBrgb(121, 128, 23)
HSLhsl(64, 70%, 30%)
HSVhsv(64, 82%, 50%)
CMYKcmyk(5.5%, 0%, 82%, 49.8%)
CIE-LABlab(51.34, -15.58, 51.00)
CIE-LCHlch(51.34, 53.32, 106.99°)
OKLaboklab(57.52% -0.0485 0.1109)
OKLCHoklch(57.52% 0.121 113.6)
XYZxyz(15.7595, 19.5655, 3.7568)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798017 #1E1780
analogous
#805317 #798017 #458017
triadic
#798017 #177980 #801779
tetradic
#798017 #178053 #1E1780 #801745
square
#798017 #178053 #1E1780 #801745
split-complementary
#798017 #174580 #531780
monochromatic
#191A05 #484C0E #798017 #AAB420 #D0DB36

Accessibility & contrast

On white

4.27
#798017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#798017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798017
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798017#FFFFFF#000000##000000
##7980171.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#82786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798017;
/* rgb */ color: rgb(121, 128, 23);
/* oklch */ color: oklch(57.5% 0.121 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a45f',
    500: '#798017',
    950: '#000000',
  },
}
SCSS
$custom: #798017;
$custom-light: #a3a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#798017",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 64,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57521,
    "c": 0.12099,
    "h": 113.6
  },
  "luminance": 0.19565
}

Semantic roles & 50–950 ramp

primary
#798017
secondary
#463EB4
accent
#3BEC47
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798017

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

Preview Lab → · Contrast checker → · Palette generator →

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