#878024#878024

#878024 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.110 H 104.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#878024
RGBrgb(135, 128, 36)
HSLhsl(56, 58%, 34%)
HSVhsv(56, 73%, 53%)
CMYKcmyk(0%, 5.2%, 73.3%, 47.1%)
CIE-LABlab(52.64, -8.57, 48.10)
CIE-LCHlch(52.64, 48.85, 100.10°)
OKLaboklab(58.88% -0.0285 0.1067)
OKLCHoklch(58.88% 0.11 104.9)
XYZxyz(18.0300, 20.7173, 4.7178)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878024 #242B87
analogous
#874E24 #878024 #5C8724
triadic
#878024 #248780 #802487
tetradic
#878024 #24874E #242B87 #87245C
square
#878024 #24874E #242B87 #87245C
split-complementary
#878024 #245C87 #4E2487
monochromatic
#26240A #575217 #878024 #B7AE31 #D1C954

Accessibility & contrast

On white

4.08
#878024 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#878024 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878024
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878024#FFFFFF#000000##000000
##8780241.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B14
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#91776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #878024;
/* rgb */ color: rgb(135, 128, 36);
/* oklch */ color: oklch(58.9% 0.110 104.9);
Tailwind
colors: {
  custom: {
    50: '#ada465',
    500: '#878024',
    950: '#000000',
  },
}
SCSS
$custom: #878024;
$custom-light: #ada465;
$custom-dark: #000000;
JSON
{
  "hex": "#878024",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 36
  },
  "hsl": {
    "h": 55.758,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58878,
    "c": 0.11038,
    "h": 104.9
  },
  "luminance": 0.20717
}

Semantic roles & 50–950 ramp

primary
#878024
secondary
#5158B5
accent
#52E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878024

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

Preview Lab → · Contrast checker → · Palette generator →

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