#8D871A#8D871A

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

Color values

HEX#8D871A
RGBrgb(141, 135, 26)
HSLhsl(57, 69%, 33%)
HSVhsv(57, 82%, 55%)
CMYKcmyk(0%, 4.3%, 81.6%, 44.7%)
CIE-LABlab(55.14, -10.06, 54.10)
CIE-LCHlch(55.14, 55.03, 100.53°)
OKLaboklab(60.98% -0.0339 0.1172)
OKLCHoklch(60.98% 0.122 106.1)
XYZxyz(19.8358, 23.0660, 4.3844)
Luminance0.2306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871A #1A208D
analogous
#8D4E1A #8D871A #598D1A
triadic
#8D871A #1A8D87 #871A8D
tetradic
#8D871A #1A8D4E #1A208D #8D1A59
square
#8D871A #1A8D4E #1A208D #8D1A59
split-complementary
#8D871A #1A598D #4E1A8D
monochromatic
#262407 #595610 #8D871A #C1B824 #DDD545

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D871A#FFFFFF#000000##000000
##8D871A1.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)
#968624
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d871a;
/* rgb */ color: rgb(141, 135, 26);
/* oklch */ color: oklch(61.0% 0.122 106.1);
Tailwind
colors: {
  custom: {
    50: '#b2a962',
    500: '#8d871a',
    950: '#000000',
  },
}
SCSS
$custom: #8d871a;
$custom-light: #b2a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871a",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 56.87,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60984,
    "c": 0.12203,
    "h": 106.1
  },
  "luminance": 0.23065
}

Semantic roles & 50–950 ramp

primary
#8D871A
secondary
#454BBE
accent
#45EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871A

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

Preview Lab → · Contrast checker → · Palette generator →

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