#879822#879822

#879822 is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.5% C 0.138 H 117.8°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#879822
RGBrgb(135, 152, 34)
HSLhsl(69, 63%, 36%)
HSVhsv(69, 78%, 60%)
CMYKcmyk(11.2%, 0%, 77.6%, 40.4%)
CIE-LABlab(59.64, -21.33, 55.46)
CIE-LCHlch(59.64, 59.42, 111.04°)
OKLaboklab(64.48% -0.0642 0.1219)
OKLCHoklch(64.48% 0.138 117.8)
XYZxyz(21.5092, 27.7231, 5.7311)
Luminance0.2772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#879822 #332298
analogous
#986E22 #879822 #4C9822
triadic
#879822 #228798 #982287
tetradic
#879822 #22986E #332298 #98224C
square
#879822 #22986E #332298 #98224C
split-complementary
#879822 #224C98 #6E2298
monochromatic
#2E340C #5B6617 #879822 #B3CA2D #C8DA5A

Accessibility & contrast

On white

3.21
#879822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#879822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #879822
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##879822#FFFFFF#000000##000000
##8798221.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F03
Deuteranopia (green-blind)
#A1902D
Tritanopia (blue-blind)
#908F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #879822;
/* rgb */ color: rgb(135, 152, 34);
/* oklch */ color: oklch(64.5% 0.138 117.8);
Tailwind
colors: {
  custom: {
    50: '#adb667',
    500: '#879822',
    950: '#000000',
  },
}
SCSS
$custom: #879822;
$custom-light: #adb667;
$custom-dark: #000000;
JSON
{
  "hex": "#879822",
  "rgb": {
    "r": 135,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 68.644,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64476,
    "c": 0.13773,
    "h": 117.8
  },
  "luminance": 0.27723
}

Semantic roles & 50–950 ramp

primary
#879822
secondary
#6657BE
accent
#41E659
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #879822

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

Preview Lab → · Contrast checker → · Palette generator →

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