#798221#798221

#798221 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.118 H 114.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798221
RGBrgb(121, 130, 33)
HSLhsl(66, 60%, 32%)
HSVhsv(66, 75%, 51%)
CMYKcmyk(6.9%, 0%, 74.6%, 49%)
CIE-LABlab(52.00, -16.19, 48.21)
CIE-LCHlch(52.00, 50.86, 108.56°)
OKLaboklab(58.06% -0.0493 0.1068)
OKLCHoklch(58.06% 0.118 114.8)
XYZxyz(16.1428, 20.1403, 4.4756)
Luminance0.2014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798221 #2A2182
analogous
#825B21 #798221 #498221
triadic
#798221 #217982 #822179
tetradic
#798221 #21825B #2A2182 #822149
square
#798221 #21825B #2A2182 #822149
split-complementary
#798221 #214982 #5B2182
monochromatic
#1E2008 #4C5115 #798221 #A6B32D #C5D24C

Accessibility & contrast

On white

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

On black

5.03
#798221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798221
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798221#FFFFFF#000000##000000
##7982211.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0E
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#817A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798221;
/* rgb */ color: rgb(121, 130, 33);
/* oklch */ color: oklch(58.1% 0.118 114.8);
Tailwind
colors: {
  custom: {
    50: '#a3a664',
    500: '#798221',
    950: '#000000',
  },
}
SCSS
$custom: #798221;
$custom-light: #a3a664;
$custom-dark: #000000;
JSON
{
  "hex": "#798221",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 65.567,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58062,
    "c": 0.11764,
    "h": 114.8
  },
  "luminance": 0.2014
}

Semantic roles & 50–950 ramp

primary
#798221
secondary
#544AB4
accent
#45E354
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798221

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

Preview Lab → · Contrast checker → · Palette generator →

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