#877F16#877F16

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

Color values

HEX#877F16
RGBrgb(135, 127, 22)
HSLhsl(56, 72%, 31%)
HSVhsv(56, 84%, 53%)
CMYKcmyk(0%, 5.9%, 83.7%, 47.1%)
CIE-LABlab(52.27, -8.61, 52.58)
CIE-LCHlch(52.27, 53.28, 99.30°)
OKLaboklab(58.56% -0.0299 0.1134)
OKLCHoklch(58.56% 0.117 104.8)
XYZxyz(17.7267, 20.3883, 3.7605)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F16 #161E87
analogous
#874616 #877F16 #568716
triadic
#877F16 #16877F #7F1687
tetradic
#877F16 #168746 #161E87 #871656
square
#877F16 #168746 #161E87 #871656
split-complementary
#877F16 #165687 #461687
monochromatic
#1E1C05 #524D0D #877F16 #BCB11F #DFD339

Accessibility & contrast

On white

4.14
#877F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#877F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F16
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F16#FFFFFF#000000##000000
##877F161.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8E7F1F
Tritanopia (blue-blind)
#92766C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f16;
/* rgb */ color: rgb(135, 127, 22);
/* oklch */ color: oklch(58.6% 0.117 104.8);
Tailwind
colors: {
  custom: {
    50: '#aea35f',
    500: '#877f16',
    950: '#000000',
  },
}
SCSS
$custom: #877f16;
$custom-light: #aea35f;
$custom-dark: #000000;
JSON
{
  "hex": "#877f16",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 55.752,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58562,
    "c": 0.11731,
    "h": 104.8
  },
  "luminance": 0.20388
}

Semantic roles & 50–950 ramp

primary
#877F16
secondary
#3E47BB
accent
#46EF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #877F16

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

Preview Lab → · Contrast checker → · Palette generator →

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