#8F31C5#8F31C5

#8F31C5 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.219 H 309.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8F31C5
RGBrgb(143, 49, 197)
HSLhsl(278, 60%, 48%)
HSVhsv(278, 75%, 77%)
CMYKcmyk(27.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(41.32, 62.23, -59.43)
CIE-LCHlch(41.32, 86.05, 316.32°)
OKLaboklab(52.21% 0.1397 -0.1685)
OKLCHoklch(52.21% 0.219 309.7)
XYZxyz(22.5020, 12.0679, 53.9565)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C5 #67C531
analogous
#4531C5 #8F31C5 #C531B1
triadic
#8F31C5 #C58F31 #31C58F
tetradic
#8F31C5 #C54531 #67C531 #31B1C5
square
#8F31C5 #C54531 #67C531 #31B1C5
split-complementary
#8F31C5 #B1C531 #31C545
monochromatic
#481963 #6B2594 #8F31C5 #AA5DD7 #C48EE3

Accessibility & contrast

On white

6.15
#8F31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8F31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C5#FFFFFF#000000##FFFFFF
##8F31C51.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#875479
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f31c5;
/* rgb */ color: rgb(143, 49, 197);
/* oklch */ color: oklch(52.2% 0.219 309.7);
Tailwind
colors: {
  custom: {
    50: '#b573d7',
    500: '#8f31c5',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c5;
$custom-light: #b573d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c5",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 278.108,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.21892,
    "h": 309.7
  },
  "luminance": 0.12067
}

Semantic roles & 50–950 ramp

primary
#8F31C5
secondary
#9FCD85
accent
#E3447E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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