#877D27#877D27

#877D27 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.2% C 0.105 H 102.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#877D27
RGBrgb(135, 125, 39)
HSLhsl(54, 55%, 34%)
HSVhsv(54, 71%, 53%)
CMYKcmyk(0%, 7.4%, 71.1%, 47.1%)
CIE-LABlab(51.80, -6.75, 46.04)
CIE-LCHlch(51.80, 46.53, 98.34°)
OKLaboklab(58.22% -0.023 0.1029)
OKLCHoklch(58.22% 0.105 102.6)
XYZxyz(17.6922, 19.9653, 4.8408)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D27 #273187
analogous
#874D27 #877D27 #618727
triadic
#877D27 #27877D #7D2787
tetradic
#877D27 #27874D #273187 #872761
square
#877D27 #27874D #273187 #872761
split-complementary
#877D27 #276187 #4D2787
monochromatic
#28250C #585119 #877D27 #B6A935 #CFC359

Accessibility & contrast

On white

4.21
#877D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#877D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D27
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D27#FFFFFF#000000##000000
##877D271.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791A
Deuteranopia (green-blind)
#8C7D2C
Tritanopia (blue-blind)
#91746C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877d27;
/* rgb */ color: rgb(135, 125, 39);
/* oklch */ color: oklch(58.2% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#ada267',
    500: '#877d27',
    950: '#000000',
  },
}
SCSS
$custom: #877d27;
$custom-light: #ada267;
$custom-dark: #000000;
JSON
{
  "hex": "#877d27",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 53.75,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58216,
    "c": 0.10541,
    "h": 102.6
  },
  "luminance": 0.19965
}

Semantic roles & 50–950 ramp

primary
#877D27
secondary
#5660B4
accent
#59DF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #877D27

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

Preview Lab → · Contrast checker → · Palette generator →

#877D27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva