#878727#878727

#878727 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.5% C 0.116 H 109.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#878727
RGBrgb(135, 135, 39)
HSLhsl(60, 55%, 34%)
HSVhsv(60, 71%, 53%)
CMYKcmyk(0%, 0%, 71.1%, 47.1%)
CIE-LABlab(54.68, -12.21, 48.92)
CIE-LCHlch(54.68, 50.42, 104.01°)
OKLaboklab(60.52% -0.0384 0.1089)
OKLCHoklch(60.52% 0.116 109.4)
XYZxyz(19.0225, 22.6259, 5.2843)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878727 #272787
analogous
#875727 #878727 #578727
triadic
#878727 #278787 #872787
tetradic
#878727 #278757 #272787 #872757
square
#878727 #278757 #272787 #872757
split-complementary
#878727 #275787 #572787
monochromatic
#28280C #585819 #878727 #B6B635 #CFCF59

Accessibility & contrast

On white

3.80
#878727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#878727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878727
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878727#FFFFFF#000000##000000
##8787271.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928117
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#917E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878727;
/* rgb */ color: rgb(135, 135, 39);
/* oklch */ color: oklch(60.5% 0.116 109.4);
Tailwind
colors: {
  custom: {
    50: '#ada968',
    500: '#878727',
    950: '#000000',
  },
}
SCSS
$custom: #878727;
$custom-light: #ada968;
$custom-dark: #000000;
JSON
{
  "hex": "#878727",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 60,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60516,
    "c": 0.1155,
    "h": 109.4
  },
  "luminance": 0.22625
}

Semantic roles & 50–950 ramp

primary
#878727
secondary
#5656B4
accent
#49DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878727

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

Preview Lab → · Contrast checker → · Palette generator →

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