#8F2EA6#8F2EA6

#8F2EA6 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.8% C 0.194 H 319.2°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8F2EA6
RGBrgb(143, 46, 166)
HSLhsl(289, 57%, 42%)
HSVhsv(289, 72%, 65%)
CMYKcmyk(13.9%, 72.3%, 0%, 34.9%)
CIE-LABlab(38.81, 57.07, -45.19)
CIE-LCHlch(38.81, 72.79, 321.63°)
OKLaboklab(49.76% 0.1467 -0.1267)
OKLCHoklch(49.76% 0.194 319.2)
XYZxyz(19.1867, 10.5477, 37.0943)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2EA6 #45A62E
analogous
#532EA6 #8F2EA6 #A62E81
triadic
#8F2EA6 #A68F2E #2EA68F
tetradic
#8F2EA6 #A6532E #45A62E #2E81A6
square
#8F2EA6 #A6532E #45A62E #2E81A6
split-complementary
#8F2EA6 #81A62E #2EA653
monochromatic
#3C1346 #662176 #8F2EA6 #B246CC #C676D9

Accessibility & contrast

On white

6.75
#8F2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8F2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2EA6
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2EA6#FFFFFF#000000##FFFFFF
##8F2EA61.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#365FA3
Tritanopia (blue-blind)
#8F4567
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8f2ea6;
/* rgb */ color: rgb(143, 46, 166);
/* oklch */ color: oklch(49.8% 0.194 319.2);
Tailwind
colors: {
  custom: {
    50: '#b370c1',
    500: '#8f2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ea6;
$custom-light: #b370c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ea6",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 288.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49755,
    "c": 0.19388,
    "h": 319.2
  },
  "luminance": 0.10547
}

Semantic roles & 50–950 ramp

primary
#8F2EA6
secondary
#7FC16F
accent
#E04865
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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