#877227#877227

#877227 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.7% C 0.096 H 93.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#877227
RGBrgb(135, 114, 39)
HSLhsl(47, 55%, 34%)
HSVhsv(47, 71%, 53%)
CMYKcmyk(0%, 15.6%, 71.1%, 47.1%)
CIE-LABlab(48.68, -0.56, 42.87)
CIE-LCHlch(48.68, 42.87, 90.74°)
OKLaboklab(55.74% -0.0053 0.0962)
OKLCHoklch(55.74% 0.096 93.2)
XYZxyz(16.3760, 17.3329, 4.4021)
Luminance0.1733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877227 #273C87
analogous
#874227 #877227 #6C8727
triadic
#877227 #278772 #722787
tetradic
#877227 #278742 #273C87 #87276C
square
#877227 #278742 #273C87 #87276C
split-complementary
#877227 #276C87 #422787
monochromatic
#28220C #584A19 #877227 #B69A35 #CFB559

Accessibility & contrast

On white

4.70
#877227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#877227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #877227
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877227#FFFFFF#000000##FFFFFF
##8772271.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701D
Deuteranopia (green-blind)
#84762B
Tritanopia (blue-blind)
#926963
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #877227;
/* rgb */ color: rgb(135, 114, 39);
/* oklch */ color: oklch(55.7% 0.096 93.2);
Tailwind
colors: {
  custom: {
    50: '#ad9a66',
    500: '#877227',
    950: '#000000',
  },
}
SCSS
$custom: #877227;
$custom-light: #ad9a66;
$custom-dark: #000000;
JSON
{
  "hex": "#877227",
  "rgb": {
    "r": 135,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 46.875,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55743,
    "c": 0.09632,
    "h": 93.2
  },
  "luminance": 0.17332
}

Semantic roles & 50–950 ramp

primary
#877227
secondary
#566AB4
accent
#6ADF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #877227

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

Preview Lab → · Contrast checker → · Palette generator →

#877227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva