#879218#879218

#879218 is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.0% C 0.136 H 115.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#879218
RGBrgb(135, 146, 24)
HSLhsl(65, 72%, 33%)
HSVhsv(65, 84%, 57%)
CMYKcmyk(7.5%, 0%, 83.6%, 42.7%)
CIE-LABlab(57.82, -18.66, 56.81)
CIE-LCHlch(57.82, 59.80, 108.18°)
OKLaboklab(63% -0.0576 0.1229)
OKLCHoklch(63% 0.136 115.1)
XYZxyz(20.4361, 25.7750, 4.7625)
Luminance0.2577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#879218 #231892
analogous
#926018 #879218 #4A9218
triadic
#879218 #188792 #921887
tetradic
#879218 #189260 #231892 #92184A
square
#879218 #189260 #231892 #92184A
split-complementary
#879218 #184A92 #601892
monochromatic
#262907 #565D0F #879218 #B8C721 #D2E044

Accessibility & contrast

On white

3.41
#879218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#879218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #879218
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##879218#FFFFFF#000000##000000
##8792181.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#9C8C25
Tritanopia (blue-blind)
#90897C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #879218;
/* rgb */ color: rgb(135, 146, 24);
/* oklch */ color: oklch(63.0% 0.136 115.1);
Tailwind
colors: {
  custom: {
    50: '#aeb162',
    500: '#879218',
    950: '#000000',
  },
}
SCSS
$custom: #879218;
$custom-light: #aeb162;
$custom-dark: #000000;
JSON
{
  "hex": "#879218",
  "rgb": {
    "r": 135,
    "g": 146,
    "b": 24
  },
  "hsl": {
    "h": 65.41,
    "s": 71.765,
    "l": 33.333
  },
  "oklch": {
    "l": 0.63003,
    "c": 0.13577,
    "h": 115.1
  },
  "luminance": 0.25775
}

Semantic roles & 50–950 ramp

primary
#879218
secondary
#5045C1
accent
#39EE4A
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #879218

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

Preview Lab → · Contrast checker → · Palette generator →

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