#878124#878124

#878124 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.1% C 0.111 H 105.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#878124
RGBrgb(135, 129, 36)
HSLhsl(56, 58%, 34%)
HSVhsv(56, 73%, 53%)
CMYKcmyk(0%, 4.4%, 73.3%, 47.1%)
CIE-LABlab(52.93, -9.11, 48.38)
CIE-LCHlch(52.93, 49.23, 100.67°)
OKLaboklab(59.11% -0.03 0.1072)
OKLCHoklch(59.11% 0.111 105.6)
XYZxyz(18.1611, 20.9795, 4.7615)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878124 #242A87
analogous
#874F24 #878124 #5B8724
triadic
#878124 #248781 #812487
tetradic
#878124 #24874F #242A87 #87245B
square
#878124 #24874F #242A87 #87245B
split-complementary
#878124 #245B87 #4F2487
monochromatic
#26250A #575317 #878124 #B7AF31 #D1CA54

Accessibility & contrast

On white

4.04
#878124 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#878124 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878124
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878124#FFFFFF#000000##000000
##8781241.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C14
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#91786F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #878124;
/* rgb */ color: rgb(135, 129, 36);
/* oklch */ color: oklch(59.1% 0.111 105.6);
Tailwind
colors: {
  custom: {
    50: '#ada566',
    500: '#878124',
    950: '#000000',
  },
}
SCSS
$custom: #878124;
$custom-light: #ada566;
$custom-dark: #000000;
JSON
{
  "hex": "#878124",
  "rgb": {
    "r": 135,
    "g": 129,
    "b": 36
  },
  "hsl": {
    "h": 56.364,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59107,
    "c": 0.11136,
    "h": 105.6
  },
  "luminance": 0.20979
}

Semantic roles & 50–950 ramp

primary
#878124
secondary
#5157B5
accent
#50E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878124

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

Preview Lab → · Contrast checker → · Palette generator →

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