#8D871C#8D871C

#8D871C is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.121 H 106.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8D871C
RGBrgb(141, 135, 28)
HSLhsl(57, 67%, 33%)
HSVhsv(57, 80%, 55%)
CMYKcmyk(0%, 4.3%, 80.1%, 44.7%)
CIE-LABlab(55.15, -9.99, 53.49)
CIE-LCHlch(55.15, 54.42, 100.57°)
OKLaboklab(60.99% -0.0336 0.1163)
OKLCHoklch(60.99% 0.121 106.1)
XYZxyz(19.8589, 23.0753, 4.5063)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871C #1C228D
analogous
#8D4E1C #8D871C #5A8D1C
triadic
#8D871C #1C8D87 #871C8D
tetradic
#8D871C #1C8D4E #1C228D #8D1C5A
square
#8D871C #1C8D4E #1C228D #8D1C5A
split-complementary
#8D871C #1C5A8D #4E1C8D
monochromatic
#272508 #5A5612 #8D871C #C0B826 #DBD349

Accessibility & contrast

On white

3.74
#8D871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8D871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D871C
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D871C#FFFFFF#000000##000000
##8D871C1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d871c;
/* rgb */ color: rgb(141, 135, 28);
/* oklch */ color: oklch(61.0% 0.121 106.1);
Tailwind
colors: {
  custom: {
    50: '#b2a963',
    500: '#8d871c',
    950: '#000000',
  },
}
SCSS
$custom: #8d871c;
$custom-light: #b2a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871c",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 56.814,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60994,
    "c": 0.12105,
    "h": 106.1
  },
  "luminance": 0.23075
}

Semantic roles & 50–950 ramp

primary
#8D871C
secondary
#484EBD
accent
#47EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871C

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

Preview Lab → · Contrast checker → · Palette generator →

#8D871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva