#8F2EA7#8F2EA7

#8F2EA7 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.195 H 318.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8F2EA7
RGBrgb(143, 46, 167)
HSLhsl(288, 57%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(14.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(38.87, 57.26, -45.68)
CIE-LCHlch(38.87, 73.25, 321.42°)
OKLaboklab(49.82% 0.1467 -0.1282)
OKLCHoklch(49.82% 0.195 318.8)
XYZxyz(19.2788, 10.5846, 37.5792)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2EA7 #46A72E
analogous
#532EA7 #8F2EA7 #A72E83
triadic
#8F2EA7 #A78F2E #2EA78F
tetradic
#8F2EA7 #A7532E #46A72E #2E83A7
square
#8F2EA7 #A7532E #46A72E #2E83A7
split-complementary
#8F2EA7 #83A72E #2EA753
monochromatic
#3D1447 #662177 #8F2EA7 #B246CC #C676D9

Accessibility & contrast

On white

6.74
#8F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8F2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2EA7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2EA7#FFFFFF#000000##FFFFFF
##8F2EA71.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#365FA4
Tritanopia (blue-blind)
#8F4668
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2ea7;
/* rgb */ color: rgb(143, 46, 167);
/* oklch */ color: oklch(49.8% 0.195 318.8);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ea7;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ea7",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 288.099,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4982,
    "c": 0.19477,
    "h": 318.8
  },
  "luminance": 0.10584
}

Semantic roles & 50–950 ramp

primary
#8F2EA7
secondary
#80C170
accent
#E04866
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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