#877F27#877F27

#877F27 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.107 H 104.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#877F27
RGBrgb(135, 127, 39)
HSLhsl(55, 55%, 34%)
HSVhsv(55, 71%, 53%)
CMYKcmyk(0%, 5.9%, 71.1%, 47.1%)
CIE-LABlab(52.37, -7.85, 46.62)
CIE-LCHlch(52.37, 47.27, 99.56°)
OKLaboklab(58.67% -0.0261 0.1041)
OKLCHoklch(58.67% 0.107 104.1)
XYZxyz(17.9480, 20.4768, 4.9261)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F27 #272F87
analogous
#874F27 #877F27 #5F8727
triadic
#877F27 #27877F #7F2787
tetradic
#877F27 #27874F #272F87 #87275F
square
#877F27 #27874F #272F87 #87275F
split-complementary
#877F27 #275F87 #4F2787
monochromatic
#28260C #585219 #877F27 #B6AC35 #CFC559

Accessibility & contrast

On white

4.12
#877F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#877F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F27
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F27#FFFFFF#000000##000000
##877F271.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1A
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#91766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f27;
/* rgb */ color: rgb(135, 127, 39);
/* oklch */ color: oklch(58.7% 0.107 104.1);
Tailwind
colors: {
  custom: {
    50: '#ada367',
    500: '#877f27',
    950: '#000000',
  },
}
SCSS
$custom: #877f27;
$custom-light: #ada367;
$custom-dark: #000000;
JSON
{
  "hex": "#877f27",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 55,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58672,
    "c": 0.10732,
    "h": 104.1
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#877F27
secondary
#565EB4
accent
#56DF49
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #877F27

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

Preview Lab → · Contrast checker → · Palette generator →

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