#8F51CA#8F51CA

#8F51CA is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.183 H 304.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8F51CA
RGBrgb(143, 81, 202)
HSLhsl(271, 53%, 55%)
HSVhsv(271, 60%, 79%)
CMYKcmyk(29.2%, 59.9%, 0%, 20.8%)
CIE-LABlab(46.96, 48.67, -53.24)
CIE-LCHlch(46.96, 72.13, 312.44°)
OKLaboklab(56.36% 0.1047 -0.1505)
OKLCHoklch(56.36% 0.183 304.8)
XYZxyz(24.9285, 15.9889, 57.6386)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51CA #8CCA51
analogous
#5251CA #8F51CA #CA51C8
triadic
#8F51CA #CA8F51 #51CA8F
tetradic
#8F51CA #CA5251 #8CCA51 #51C8CA
square
#8F51CA #CA5251 #8CCA51 #51C8CA
split-complementary
#8F51CA #C8CA51 #51CA52
monochromatic
#51257B #7034AA #8F51CA #AD80D8 #CBAFE7

Accessibility & contrast

On white

5.00
#8F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8F51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51CA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51CA#FFFFFF#000000##FFFFFF
##8F51CA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECE
Deuteranopia (green-blind)
#366FC7
Tritanopia (blue-blind)
#856986
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8f51ca;
/* rgb */ color: rgb(143, 81, 202);
/* oklch */ color: oklch(56.4% 0.183 304.8);
Tailwind
colors: {
  custom: {
    50: '#b385db',
    500: '#8f51ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f51ca;
$custom-light: #b385db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51ca",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 270.744,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56359,
    "c": 0.18334,
    "h": 304.8
  },
  "luminance": 0.15989
}

Semantic roles & 50–950 ramp

primary
#8F51CA
secondary
#BBD5A2
accent
#DD4B92
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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