#8F31C7#8F31C7

#8F31C7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.4% C 0.221 H 309.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8F31C7
RGBrgb(143, 49, 199)
HSLhsl(278, 60%, 49%)
HSVhsv(278, 75%, 78%)
CMYKcmyk(28.1%, 75.4%, 0%, 22%)
CIE-LABlab(41.47, 62.65, -60.36)
CIE-LCHlch(41.47, 87.00, 316.07°)
OKLaboklab(52.36% 0.1393 -0.1713)
OKLCHoklch(52.36% 0.221 309.1)
XYZxyz(22.7327, 12.1602, 55.1714)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C7 #69C731
analogous
#4431C7 #8F31C7 #C731B4
triadic
#8F31C7 #C78F31 #31C78F
tetradic
#8F31C7 #C74431 #69C731 #31B4C7
square
#8F31C7 #C74431 #69C731 #31B4C7
split-complementary
#8F31C7 #B4C731 #31C744
monochromatic
#481965 #6C2596 #8F31C7 #AA5ED7 #C48FE3

Accessibility & contrast

On white

6.12
#8F31C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8F31C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C7#FFFFFF#000000##FFFFFF
##8F31C71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#87557A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8f31c7;
/* rgb */ color: rgb(143, 49, 199);
/* oklch */ color: oklch(52.4% 0.221 309.1);
Tailwind
colors: {
  custom: {
    50: '#b573d9',
    500: '#8f31c7',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c7;
$custom-light: #b573d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c7",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 277.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52358,
    "c": 0.22079,
    "h": 309.1
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#8F31C7
secondary
#A1CE86
accent
#E44480
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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