#879A21#879A21

#879A21 is a light, vivid yellow. Relative luminance 0.284; OKLCH L 64.9% C 0.141 H 118.5°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#879A21
RGBrgb(135, 154, 33)
HSLhsl(69, 65%, 37%)
HSVhsv(69, 79%, 60%)
CMYKcmyk(12.3%, 0%, 78.6%, 39.6%)
CIE-LABlab(60.22, -22.38, 56.32)
CIE-LCHlch(60.22, 60.60, 111.67°)
OKLaboklab(64.95% -0.0672 0.1235)
OKLCHoklch(64.95% 0.141 118.5)
XYZxyz(21.8223, 28.3721, 5.7653)
Luminance0.2837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#879A21 #34219A
analogous
#9A7121 #879A21 #4B9A21
triadic
#879A21 #21879A #9A2187
tetradic
#879A21 #219A71 #34219A #9A214B
square
#879A21 #219A71 #34219A #9A214B
split-complementary
#879A21 #214B9A #71219A
monochromatic
#2F350B #5B6816 #879A21 #B3CC2C #C7DC5A

Accessibility & contrast

On white

3.15
#879A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#879A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #879A21
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##879A21#FFFFFF#000000##000000
##879A211.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A2922D
Tritanopia (blue-blind)
#8F9184
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #879a21;
/* rgb */ color: rgb(135, 154, 33);
/* oklch */ color: oklch(64.9% 0.141 118.5);
Tailwind
colors: {
  custom: {
    50: '#adb767',
    500: '#879a21',
    950: '#000000',
  },
}
SCSS
$custom: #879a21;
$custom-light: #adb767;
$custom-dark: #000000;
JSON
{
  "hex": "#879a21",
  "rgb": {
    "r": 135,
    "g": 154,
    "b": 33
  },
  "hsl": {
    "h": 69.421,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.64946,
    "c": 0.14058,
    "h": 118.5
  },
  "luminance": 0.28372
}

Semantic roles & 50–950 ramp

primary
#879A21
secondary
#6757C0
accent
#40E85A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #879A21

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

Preview Lab → · Contrast checker → · Palette generator →

#879A21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva