#8D187E#8D187E

#8D187E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.184 H 334.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8D187E
RGBrgb(141, 24, 126)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 55%)
CMYKcmyk(0%, 83%, 10.6%, 44.7%)
CIE-LABlab(33.61, 56.82, -29.00)
CIE-LCHlch(33.61, 63.79, 332.96°)
OKLaboklab(45.22% 0.1654 -0.0795)
OKLCHoklch(45.22% 0.184 334.3)
XYZxyz(15.0772, 7.8237, 20.4507)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D187E #188D27
analogous
#61188D #8D187E #8D1844
triadic
#8D187E #7E8D18 #187E8D
tetradic
#8D187E #8D6118 #188D27 #18448D
square
#8D187E #8D6118 #188D27 #18448D
split-complementary
#8D187E #448D18 #188D61
monochromatic
#240621 #590F4F #8D187E #C121AD #DF41CA

Accessibility & contrast

On white

8.19
#8D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D187E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D187E#FFFFFF#000000##FFFFFF
##8D187E1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#94254B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d187e;
/* rgb */ color: rgb(141, 24, 126);
/* oklch */ color: oklch(45.2% 0.184 334.3);
Tailwind
colors: {
  custom: {
    50: '#b265a4',
    500: '#8d187e',
    950: '#000000',
  },
}
SCSS
$custom: #8d187e;
$custom-light: #b265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d187e",
  "rgb": {
    "r": 141,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 307.692,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45218,
    "c": 0.18352,
    "h": 334.3
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#8D187E
secondary
#42BF52
accent
#EE513A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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