#798216#798216

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

Color values

HEX#798216
RGBrgb(121, 130, 22)
HSLhsl(65, 71%, 30%)
HSVhsv(65, 83%, 51%)
CMYKcmyk(6.9%, 0%, 83.1%, 49%)
CIE-LABlab(51.94, -16.68, 51.82)
CIE-LCHlch(51.94, 54.43, 107.84°)
OKLaboklab(58% -0.0516 0.1124)
OKLCHoklch(58% 0.124 114.6)
XYZxyz(16.0131, 20.0884, 3.7928)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798216 #1F1682
analogous
#825516 #798216 #438216
triadic
#798216 #167982 #821679
tetradic
#798216 #168255 #1F1682 #821643
square
#798216 #168255 #1F1682 #821643
split-complementary
#798216 #164382 #551682
monochromatic
#181A04 #484E0D #798216 #AAB61F #CFDD35

Accessibility & contrast

On white

4.19
#798216 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798216#FFFFFF#000000##000000
##7982161.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798216;
/* rgb */ color: rgb(121, 130, 22);
/* oklch */ color: oklch(58.0% 0.124 114.6);
Tailwind
colors: {
  custom: {
    50: '#a3a65f',
    500: '#798216',
    950: '#000000',
  },
}
SCSS
$custom: #798216;
$custom-light: #a3a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#798216",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 22
  },
  "hsl": {
    "h": 65,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57996,
    "c": 0.1237,
    "h": 114.6
  },
  "luminance": 0.20088
}

Semantic roles & 50–950 ramp

primary
#798216
secondary
#473DB7
accent
#3AEE49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798216

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

Preview Lab → · Contrast checker → · Palette generator →

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