#798317#798317

#798317 is a mid, vivid yellow. Relative luminance 0.204; OKLCH L 58.2% C 0.124 H 115.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#798317
RGBrgb(121, 131, 23)
HSLhsl(66, 70%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(7.6%, 0%, 82.4%, 48.6%)
CIE-LABlab(52.24, -17.17, 51.79)
CIE-LCHlch(52.24, 54.56, 108.34°)
OKLaboklab(58.24% -0.0528 0.1126)
OKLCHoklch(58.24% 0.124 115.2)
XYZxyz(16.1566, 20.3597, 3.8892)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798317 #211783
analogous
#835717 #798317 #438317
triadic
#798317 #177983 #831779
tetradic
#798317 #178357 #211783 #831743
square
#798317 #178357 #211783 #831743
split-complementary
#798317 #174383 #571783
monochromatic
#191B05 #494F0E #798317 #A9B720 #CDDC38

Accessibility & contrast

On white

4.14
#798317 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#798317 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798317
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798317#FFFFFF#000000##000000
##7983171.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#817B6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798317;
/* rgb */ color: rgb(121, 131, 23);
/* oklch */ color: oklch(58.2% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a3a65f',
    500: '#798317',
    950: '#000000',
  },
}
SCSS
$custom: #798317;
$custom-light: #a3a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#798317",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 65.556,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58242,
    "c": 0.12435,
    "h": 115.2
  },
  "luminance": 0.20359
}

Semantic roles & 50–950 ramp

primary
#798317
secondary
#4A3FB7
accent
#3BED4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798317

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

Preview Lab → · Contrast checker → · Palette generator →

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