#8F31A2#8F31A2

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

Color values

HEX#8F31A2
RGBrgb(143, 49, 162)
HSLhsl(290, 54%, 41%)
HSVhsv(290, 70%, 64%)
CMYKcmyk(11.7%, 69.8%, 0%, 36.5%)
CIE-LABlab(38.98, 55.11, -42.52)
CIE-LCHlch(38.98, 69.60, 322.35°)
OKLaboklab(49.8% 0.1438 -0.1189)
OKLCHoklch(49.8% 0.187 320.4)
XYZxyz(18.9468, 10.6459, 35.2323)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31A2 #44A231
analogous
#5731A2 #8F31A2 #A2317D
triadic
#8F31A2 #A28F31 #31A28F
tetradic
#8F31A2 #A25731 #44A231 #317DA2
square
#8F31A2 #A25731 #44A231 #317DA2
split-complementary
#8F31A2 #7DA231 #31A257
monochromatic
#3C1544 #662373 #8F31A2 #B248C8 #C677D6

Accessibility & contrast

On white

6.71
#8F31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8F31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31A2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31A2#FFFFFF#000000##FFFFFF
##8F31A21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#3C5F9F
Tritanopia (blue-blind)
#904666
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f31a2;
/* rgb */ color: rgb(143, 49, 162);
/* oklch */ color: oklch(49.8% 0.187 320.4);
Tailwind
colors: {
  custom: {
    50: '#b371be',
    500: '#8f31a2',
    950: '#000000',
  },
}
SCSS
$custom: #8f31a2;
$custom-light: #b371be;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31a2",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 289.912,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49796,
    "c": 0.18663,
    "h": 320.4
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#8F31A2
secondary
#7EBE71
accent
#DD4B63
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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