#8F31C8#8F31C8

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

Color values

HEX#8F31C8
RGBrgb(143, 49, 200)
HSLhsl(277, 61%, 49%)
HSVhsv(277, 76%, 78%)
CMYKcmyk(28.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(41.54, 62.87, -60.82)
CIE-LCHlch(41.54, 87.47, 315.95°)
OKLaboklab(52.43% 0.1392 -0.1726)
OKLCHoklch(52.43% 0.222 308.9)
XYZxyz(22.8492, 12.2068, 55.7848)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31C8 #6AC831
analogous
#4431C8 #8F31C8 #C831B6
triadic
#8F31C8 #C88F31 #31C88F
tetradic
#8F31C8 #C84431 #6AC831 #31B6C8
square
#8F31C8 #C84431 #6AC831 #31B6C8
split-complementary
#8F31C8 #B6C831 #31C844
monochromatic
#491966 #6C2597 #8F31C8 #AA5FD8 #C490E4

Accessibility & contrast

On white

6.10
#8F31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8F31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31C8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31C8#FFFFFF#000000##FFFFFF
##8F31C81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#86567B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8f31c8;
/* rgb */ color: rgb(143, 49, 200);
/* oklch */ color: oklch(52.4% 0.222 308.9);
Tailwind
colors: {
  custom: {
    50: '#b573da',
    500: '#8f31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8f31c8;
$custom-light: #b573da;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31c8",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 277.351,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52432,
    "c": 0.22173,
    "h": 308.9
  },
  "luminance": 0.12206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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