#798721#798721

#798721 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.124 H 117.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#798721
RGBrgb(121, 135, 33)
HSLhsl(68, 61%, 33%)
HSVhsv(68, 76%, 53%)
CMYKcmyk(10.4%, 0%, 75.6%, 47.1%)
CIE-LABlab(53.50, -18.81, 49.65)
CIE-LCHlch(53.50, 53.09, 110.75°)
OKLaboklab(59.27% -0.0565 0.1099)
OKLCHoklch(59.27% 0.124 117.2)
XYZxyz(16.8240, 21.5029, 4.7027)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798721 #2F2187
analogous
#876221 #798721 #468721
triadic
#798721 #217987 #872179
tetradic
#798721 #218762 #2F2187 #872146
square
#798721 #218762 #2F2187 #872146
split-complementary
#798721 #214687 #622187
monochromatic
#212509 #4D5615 #798721 #A5B82D #C2D44F

Accessibility & contrast

On white

3.96
#798721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#798721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798721
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798721#FFFFFF#000000##000000
##7987211.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F0C
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#817F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798721;
/* rgb */ color: rgb(121, 135, 33);
/* oklch */ color: oklch(59.3% 0.124 117.2);
Tailwind
colors: {
  custom: {
    50: '#a3a964',
    500: '#798721',
    950: '#000000',
  },
}
SCSS
$custom: #798721;
$custom-light: #a3a964;
$custom-dark: #000000;
JSON
{
  "hex": "#798721",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 68.235,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59266,
    "c": 0.12356,
    "h": 117.2
  },
  "luminance": 0.21503
}

Semantic roles & 50–950 ramp

primary
#798721
secondary
#5B4DB7
accent
#44E45A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798721

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

Preview Lab → · Contrast checker → · Palette generator →

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