#8F31C2#8F31C2

#8F31C2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.216 H 310.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8F31C2
RGBrgb(143, 49, 194)
HSLhsl(279, 60%, 48%)
HSVhsv(279, 75%, 76%)
CMYKcmyk(26.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(41.11, 61.59, -58.03)
CIE-LCHlch(41.11, 84.63, 316.70°)
OKLaboklab(51.99% 0.1403 -0.1644)
OKLCHoklch(51.99% 0.216 310.5)
XYZxyz(22.1617, 11.9318, 52.1641)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C2 #64C231
analogous
#4731C2 #8F31C2 #C231AC
triadic
#8F31C2 #C28F31 #31C28F
tetradic
#8F31C2 #C24731 #64C231 #31ACC2
square
#8F31C2 #C24731 #64C231 #31ACC2
split-complementary
#8F31C2 #ACC231 #31C247
monochromatic
#471860 #6B2591 #8F31C2 #AA5BD6 #C38CE2

Accessibility & contrast

On white

6.20
#8F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8F31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C2#FFFFFF#000000##FFFFFF
##8F31C21.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0E62BF
Tritanopia (blue-blind)
#885378
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f31c2;
/* rgb */ color: rgb(143, 49, 194);
/* oklch */ color: oklch(52.0% 0.216 310.5);
Tailwind
colors: {
  custom: {
    50: '#b573d5',
    500: '#8f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c2;
$custom-light: #b573d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c2",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 278.897,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51988,
    "c": 0.21613,
    "h": 310.5
  },
  "luminance": 0.11931
}

Semantic roles & 50–950 ramp

primary
#8F31C2
secondary
#9DCC83
accent
#E3457C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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