#8F31C0#8F31C0

#8F31C0 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.214 H 311.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8F31C0
RGBrgb(143, 49, 192)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 75%)
CMYKcmyk(25.5%, 74.5%, 0%, 24.7%)
CIE-LABlab(40.96, 61.17, -57.10)
CIE-LCHlch(40.96, 83.68, 316.97°)
OKLaboklab(51.84% 0.1406 -0.1617)
OKLCHoklch(51.84% 0.214 311)
XYZxyz(21.9386, 11.8426, 50.9891)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C0 #62C031
analogous
#4831C0 #8F31C0 #C031A9
triadic
#8F31C0 #C08F31 #31C08F
tetradic
#8F31C0 #C04831 #62C031 #31A9C0
square
#8F31C0 #C04831 #62C031 #31A9C0
split-complementary
#8F31C0 #A9C031 #31C048
monochromatic
#46185E #6B258F #8F31C0 #AB59D5 #C38AE1

Accessibility & contrast

On white

6.23
#8F31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8F31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C0#FFFFFF#000000##FFFFFF
##8F31C01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#1462BD
Tritanopia (blue-blind)
#895276
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f31c0;
/* rgb */ color: rgb(143, 49, 192);
/* oklch */ color: oklch(51.8% 0.214 311.0);
Tailwind
colors: {
  custom: {
    50: '#b473d4',
    500: '#8f31c0',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c0;
$custom-light: #b473d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c0",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 279.441,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51842,
    "c": 0.21426,
    "h": 311
  },
  "luminance": 0.11842
}

Semantic roles & 50–950 ramp

primary
#8F31C0
secondary
#9BCB82
accent
#E3457B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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