#877F28#877F28

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

Color values

HEX#877F28
RGBrgb(135, 127, 40)
HSLhsl(55, 54%, 34%)
HSVhsv(55, 70%, 53%)
CMYKcmyk(0%, 5.9%, 70.4%, 47.1%)
CIE-LABlab(52.38, -7.79, 46.21)
CIE-LCHlch(52.38, 46.86, 99.58°)
OKLaboklab(58.68% -0.0258 0.1034)
OKLCHoklch(58.68% 0.107 104)
XYZxyz(17.9648, 20.4835, 5.0145)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F28 #283087
analogous
#875028 #877F28 #608728
triadic
#877F28 #28877F #7F2887
tetradic
#877F28 #288750 #283087 #872860
square
#877F28 #288750 #283087 #872860
split-complementary
#877F28 #286087 #502887
monochromatic
#29260C #58531A #877F28 #B6AB36 #CEC55B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##877F28#FFFFFF#000000##000000
##877F281.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)
#8A7B1B
Deuteranopia (green-blind)
#8D7F2E
Tritanopia (blue-blind)
#91766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f28;
/* rgb */ color: rgb(135, 127, 40);
/* oklch */ color: oklch(58.7% 0.107 104.0);
Tailwind
colors: {
  custom: {
    50: '#ada367',
    500: '#877f28',
    950: '#000000',
  },
}
SCSS
$custom: #877f28;
$custom-light: #ada367;
$custom-dark: #000000;
JSON
{
  "hex": "#877f28",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 54.947,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58681,
    "c": 0.10659,
    "h": 104
  },
  "luminance": 0.20483
}

Semantic roles & 50–950 ramp

primary
#877F28
secondary
#575FB4
accent
#57DE4A
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #877F28

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

Preview Lab → · Contrast checker → · Palette generator →

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