#8F31B2#8F31B2

#8F31B2 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 50.9% C 0.201 H 315.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8F31B2
RGBrgb(143, 49, 178)
HSLhsl(284, 57%, 45%)
HSVhsv(284, 72%, 70%)
CMYKcmyk(19.7%, 72.5%, 0%, 30.2%)
CIE-LABlab(40.00, 58.28, -50.41)
CIE-LCHlch(40.00, 77.06, 319.14°)
OKLaboklab(50.85% 0.1426 -0.142)
OKLCHoklch(50.85% 0.201 315.1)
XYZxyz(20.4606, 11.2514, 43.2048)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B2 #54B231
analogous
#4F31B2 #8F31B2 #B23195
triadic
#8F31B2 #B28F31 #31B28F
tetradic
#8F31B2 #B24F31 #54B231 #3195B2
square
#8F31B2 #B24F31 #54B231 #3195B2
split-complementary
#8F31B2 #95B231 #31B24F
monochromatic
#421752 #682482 #8F31B2 #AD51CF #C481DC

Accessibility & contrast

On white

6.46
#8F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8F31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B2#FFFFFF#000000##FFFFFF
##8F31B21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#8C4C6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f31b2;
/* rgb */ color: rgb(143, 49, 178);
/* oklch */ color: oklch(50.9% 0.201 315.1);
Tailwind
colors: {
  custom: {
    50: '#b472ca',
    500: '#8f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b2;
$custom-light: #b472ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b2",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 283.721,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50853,
    "c": 0.20126,
    "h": 315.1
  },
  "luminance": 0.11251
}

Semantic roles & 50–950 ramp

primary
#8F31B2
secondary
#8EC579
accent
#E04871
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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