#8D2EA7#8D2EA7

#8D2EA7 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.194 H 318.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8D2EA7
RGBrgb(141, 46, 167)
HSLhsl(287, 57%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.6%, 72.5%, 0%, 34.5%)
CIE-LABlab(38.56, 56.83, -46.19)
CIE-LCHlch(38.56, 73.24, 320.90°)
OKLaboklab(49.54% 0.1442 -0.1297)
OKLCHoklch(49.54% 0.194 318)
XYZxyz(18.9356, 10.4076, 37.5632)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2EA7 #48A72E
analogous
#502EA7 #8D2EA7 #A72E85
triadic
#8D2EA7 #A78D2E #2EA78D
tetradic
#8D2EA7 #A7502E #48A72E #2E85A7
square
#8D2EA7 #A7502E #48A72E #2E85A7
split-complementary
#8D2EA7 #85A72E #2EA750
monochromatic
#3C1447 #642177 #8D2EA7 #AF46CC #C476D9

Accessibility & contrast

On white

6.82
#8D2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8D2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D2EA7
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2EA7#FFFFFF#000000##FFFFFF
##8D2EA71.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#335EA4
Tritanopia (blue-blind)
#8C4668
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d2ea7;
/* rgb */ color: rgb(141, 46, 167);
/* oklch */ color: oklch(49.5% 0.194 318.0);
Tailwind
colors: {
  custom: {
    50: '#b270c2',
    500: '#8d2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8d2ea7;
$custom-light: #b270c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2ea7",
  "rgb": {
    "r": 141,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 287.107,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49539,
    "c": 0.19396,
    "h": 318
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#8D2EA7
secondary
#81C170
accent
#E04868
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8D2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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