#798217#798217

#798217 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.0% C 0.123 H 114.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#798217
RGBrgb(121, 130, 23)
HSLhsl(65, 70%, 30%)
HSVhsv(65, 82%, 51%)
CMYKcmyk(6.9%, 0%, 82.3%, 49%)
CIE-LABlab(51.94, -16.64, 51.53)
CIE-LCHlch(51.94, 54.15, 107.90°)
OKLaboklab(58% -0.0514 0.112)
OKLCHoklch(58% 0.123 114.7)
XYZxyz(16.0229, 20.0924, 3.8446)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798217 #201782
analogous
#825617 #798217 #438217
triadic
#798217 #177982 #821779
tetradic
#798217 #178256 #201782 #821743
square
#798217 #178256 #201782 #821743
split-complementary
#798217 #174382 #561782
monochromatic
#181A05 #494E0E #798217 #A9B620 #CEDC38

Accessibility & contrast

On white

4.18
#798217 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#798217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798217
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798217#FFFFFF#000000##000000
##7982171.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#827A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798217;
/* rgb */ color: rgb(121, 130, 23);
/* oklch */ color: oklch(58.0% 0.123 114.7);
Tailwind
colors: {
  custom: {
    50: '#a3a65f',
    500: '#798217',
    950: '#000000',
  },
}
SCSS
$custom: #798217;
$custom-light: #a3a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#798217",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 65.047,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.58001,
    "c": 0.12322,
    "h": 114.7
  },
  "luminance": 0.20092
}

Semantic roles & 50–950 ramp

primary
#798217
secondary
#493EB6
accent
#3BED4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798217

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

Preview Lab → · Contrast checker → · Palette generator →

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