#879921#879921

#879921 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.7% C 0.139 H 118.2°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#879921
RGBrgb(135, 153, 33)
HSLhsl(69, 65%, 36%)
HSVhsv(69, 78%, 60%)
CMYKcmyk(11.8%, 0%, 78.4%, 40%)
CIE-LABlab(59.93, -21.88, 56.05)
CIE-LCHlch(59.93, 60.17, 111.33°)
OKLaboklab(64.71% -0.0658 0.1229)
OKLCHoklch(64.71% 0.139 118.2)
XYZxyz(21.6579, 28.0434, 5.7105)
Luminance0.2804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#879921 #332199
analogous
#996F21 #879921 #4B9921
triadic
#879921 #218799 #992187
tetradic
#879921 #21996F #332199 #99214B
square
#879921 #21996F #332199 #99214B
split-complementary
#879921 #214B99 #6F2199
monochromatic
#2E340B #5B6716 #879921 #B3CB2C #C8DB59

Accessibility & contrast

On white

3.18
#879921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#879921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #879921
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##879921#FFFFFF#000000##000000
##8799211.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#909083
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #879921;
/* rgb */ color: rgb(135, 153, 33);
/* oklch */ color: oklch(64.7% 0.139 118.2);
Tailwind
colors: {
  custom: {
    50: '#adb767',
    500: '#879921',
    950: '#000000',
  },
}
SCSS
$custom: #879921;
$custom-light: #adb767;
$custom-dark: #000000;
JSON
{
  "hex": "#879921",
  "rgb": {
    "r": 135,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 69,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64708,
    "c": 0.13942,
    "h": 118.2
  },
  "luminance": 0.28043
}

Semantic roles & 50–950 ramp

primary
#879921
secondary
#6656BF
accent
#40E859
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #879921

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

Preview Lab → · Contrast checker → · Palette generator →

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