#8F31B5#8F31B5

#8F31B5 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.1% C 0.204 H 314.2°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8F31B5
RGBrgb(143, 49, 181)
HSLhsl(283, 57%, 45%)
HSVhsv(283, 73%, 71%)
CMYKcmyk(21%, 72.9%, 0%, 29%)
CIE-LABlab(40.20, 58.89, -51.86)
CIE-LCHlch(40.20, 78.47, 318.63°)
OKLaboklab(51.06% 0.1422 -0.1463)
OKLCHoklch(51.06% 0.204 314.2)
XYZxyz(20.7651, 11.3732, 44.8085)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B5 #57B531
analogous
#4D31B5 #8F31B5 #B53199
triadic
#8F31B5 #B58F31 #31B58F
tetradic
#8F31B5 #B54D31 #57B531 #3199B5
square
#8F31B5 #B54D31 #57B531 #3199B5
split-complementary
#8F31B5 #99B531 #31B54D
monochromatic
#431755 #692485 #8F31B5 #AC53D0 #C383DD

Accessibility & contrast

On white

6.41
#8F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8F31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B5#FFFFFF#000000##FFFFFF
##8F31B51.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#2961B2
Tritanopia (blue-blind)
#8B4E70
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f31b5;
/* rgb */ color: rgb(143, 49, 181);
/* oklch */ color: oklch(51.1% 0.204 314.2);
Tailwind
colors: {
  custom: {
    50: '#b472cc',
    500: '#8f31b5',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b5;
$custom-light: #b472cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b5",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 282.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5106,
    "c": 0.20404,
    "h": 314.2
  },
  "luminance": 0.11372
}

Semantic roles & 50–950 ramp

primary
#8F31B5
secondary
#91C77B
accent
#E14773
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8F31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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