#877F22#877F22

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

Color values

HEX#877F22
RGBrgb(135, 127, 34)
HSLhsl(55, 60%, 33%)
HSVhsv(55, 75%, 53%)
CMYKcmyk(0%, 5.9%, 74.8%, 47.1%)
CIE-LABlab(52.34, -8.12, 48.58)
CIE-LCHlch(52.34, 49.26, 99.48°)
OKLaboklab(58.63% -0.0274 0.1073)
OKLCHoklch(58.63% 0.111 104.3)
XYZxyz(17.8705, 20.4458, 4.5182)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F22 #222A87
analogous
#874D22 #877F22 #5C8722
triadic
#877F22 #22877F #7F2287
tetradic
#877F22 #22874D #222A87 #87225C
square
#877F22 #22874D #222A87 #87225C
split-complementary
#877F22 #225C87 #4D2287
monochromatic
#252309 #565116 #877F22 #B8AD2E #D3C950

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##877F22#FFFFFF#000000##000000
##877F221.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)
#8B7A11
Deuteranopia (green-blind)
#8D7F29
Tritanopia (blue-blind)
#91766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f22;
/* rgb */ color: rgb(135, 127, 34);
/* oklch */ color: oklch(58.6% 0.111 104.3);
Tailwind
colors: {
  custom: {
    50: '#ada364',
    500: '#877f22',
    950: '#000000',
  },
}
SCSS
$custom: #877f22;
$custom-light: #ada364;
$custom-dark: #000000;
JSON
{
  "hex": "#877f22",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 55.248,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.11074,
    "h": 104.3
  },
  "luminance": 0.20445
}

Semantic roles & 50–950 ramp

primary
#877F22
secondary
#4E57B7
accent
#51E345
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #877F22

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

Preview Lab → · Contrast checker → · Palette generator →

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