#8B187F#8B187F

#8B187F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.183 H 333.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8B187F
RGBrgb(139, 24, 127)
HSLhsl(306, 71%, 32%)
HSVhsv(306, 83%, 55%)
CMYKcmyk(0%, 82.7%, 8.6%, 45.5%)
CIE-LABlab(33.30, 56.53, -30.14)
CIE-LCHlch(33.30, 64.07, 331.93°)
OKLaboklab(44.94% 0.1634 -0.0829)
OKLCHoklch(44.94% 0.183 333.1)
XYZxyz(14.8050, 7.6758, 20.7764)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B187F #188B24
analogous
#5E188B #8B187F #8B1846
triadic
#8B187F #7F8B18 #187F8B
tetradic
#8B187F #8B5E18 #188B24 #18468B
square
#8B187F #8B5E18 #188B24 #18468B
split-complementary
#8B187F #468B18 #188B5E
monochromatic
#230620 #570F4F #8B187F #BF21AF #DE3FCD

Accessibility & contrast

On white

8.28
#8B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8B187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B187F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B187F#FFFFFF#000000##FFFFFF
##8B187F1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#92264C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b187f;
/* rgb */ color: rgb(139, 24, 127);
/* oklch */ color: oklch(44.9% 0.183 333.1);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8b187f',
    950: '#000000',
  },
}
SCSS
$custom: #8b187f;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b187f",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 306.261,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44942,
    "c": 0.18321,
    "h": 333.1
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#8B187F
secondary
#40BE4E
accent
#ED4D3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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