#8D871B#8D871B

#8D871B 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#8D871B
RGBrgb(141, 135, 27)
HSLhsl(57, 68%, 33%)
HSVhsv(57, 81%, 55%)
CMYKcmyk(0%, 4.3%, 80.9%, 44.7%)
CIE-LABlab(55.15, -10.02, 53.80)
CIE-LCHlch(55.15, 54.73, 100.55°)
OKLaboklab(60.99% -0.0337 0.1168)
OKLCHoklch(60.99% 0.122 106.1)
XYZxyz(19.8472, 23.0706, 4.4443)
Luminance0.2307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871B #1B218D
analogous
#8D4E1B #8D871B #5A8D1B
triadic
#8D871B #1B8D87 #871B8D
tetradic
#8D871B #1B8D4E #1B218D #8D1B5A
square
#8D871B #1B8D4E #1B218D #8D1B5A
split-complementary
#8D871B #1B5A8D #4E1B8D
monochromatic
#262507 #5A5611 #8D871B #C0B825 #DCD447

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D871B#FFFFFF#000000##000000
##8D871B1.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: #8d871b;
/* rgb */ color: rgb(141, 135, 27);
/* oklch */ color: oklch(61.0% 0.122 106.1);
Tailwind
colors: {
  custom: {
    50: '#b2a962',
    500: '#8d871b',
    950: '#000000',
  },
}
SCSS
$custom: #8d871b;
$custom-light: #b2a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871b",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 56.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60989,
    "c": 0.12155,
    "h": 106.1
  },
  "luminance": 0.2307
}

Semantic roles & 50–950 ramp

primary
#8D871B
secondary
#464DBD
accent
#46EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871B

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

Preview Lab → · Contrast checker → · Palette generator →

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