#877F21#877F21

#877F21 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.6% C 0.111 H 104.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#877F21
RGBrgb(135, 127, 33)
HSLhsl(55, 61%, 33%)
HSVhsv(55, 76%, 53%)
CMYKcmyk(0%, 5.9%, 75.6%, 47.1%)
CIE-LABlab(52.33, -8.17, 48.96)
CIE-LCHlch(52.33, 49.63, 99.47°)
OKLaboklab(58.63% -0.0276 0.1079)
OKLCHoklch(58.63% 0.111 104.4)
XYZxyz(17.8563, 20.4402, 4.4433)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F21 #212987
analogous
#874C21 #877F21 #5C8721
triadic
#877F21 #21877F #7F2187
tetradic
#877F21 #21874C #212987 #87215C
square
#877F21 #21874C #212987 #87215C
split-complementary
#877F21 #215C87 #4C2187
monochromatic
#252209 #565115 #877F21 #B8AD2D #D4C94F

Accessibility & contrast

On white

4.13
#877F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#877F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F21#FFFFFF#000000##000000
##877F211.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #877f21;
/* rgb */ color: rgb(135, 127, 33);
/* oklch */ color: oklch(58.6% 0.111 104.4);
Tailwind
colors: {
  custom: {
    50: '#ada364',
    500: '#877f21',
    950: '#000000',
  },
}
SCSS
$custom: #877f21;
$custom-light: #ada364;
$custom-dark: #000000;
JSON
{
  "hex": "#877f21",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 55.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58627,
    "c": 0.11138,
    "h": 104.4
  },
  "luminance": 0.20439
}

Semantic roles & 50–950 ramp

primary
#877F21
secondary
#4D55B7
accent
#50E444
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #877F21

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

Preview Lab → · Contrast checker → · Palette generator →

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