#8F31C4#8F31C4

#8F31C4 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.1% C 0.218 H 309.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8F31C4
RGBrgb(143, 49, 196)
HSLhsl(278, 60%, 48%)
HSVhsv(278, 75%, 77%)
CMYKcmyk(27%, 75%, 0%, 23.1%)
CIE-LABlab(41.25, 62.01, -58.97)
CIE-LCHlch(41.25, 85.57, 316.44°)
OKLaboklab(52.14% 0.1399 -0.1672)
OKLCHoklch(52.14% 0.218 309.9)
XYZxyz(22.3878, 12.0223, 53.3550)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C4 #66C431
analogous
#4531C4 #8F31C4 #C431B0
triadic
#8F31C4 #C48F31 #31C48F
tetradic
#8F31C4 #C44531 #66C431 #31B0C4
square
#8F31C4 #C44531 #66C431 #31B0C4
split-complementary
#8F31C4 #B0C431 #31C445
monochromatic
#481962 #6B2593 #8F31C4 #AA5CD6 #C48DE2

Accessibility & contrast

On white

6.17
#8F31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8F31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C4#FFFFFF#000000##FFFFFF
##8F31C41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#0563C1
Tritanopia (blue-blind)
#875479
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f31c4;
/* rgb */ color: rgb(143, 49, 196);
/* oklch */ color: oklch(52.1% 0.218 309.9);
Tailwind
colors: {
  custom: {
    50: '#b573d7',
    500: '#8f31c4',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c4;
$custom-light: #b573d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c4",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 278.367,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52135,
    "c": 0.21799,
    "h": 309.9
  },
  "luminance": 0.12022
}

Semantic roles & 50–950 ramp

primary
#8F31C4
secondary
#9ECD84
accent
#E3457E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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