#8F51CB#8F51CB

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

Color values

HEX#8F51CB
RGBrgb(143, 81, 203)
HSLhsl(270, 54%, 56%)
HSVhsv(270, 60%, 80%)
CMYKcmyk(29.6%, 60.1%, 0%, 20.4%)
CIE-LABlab(47.02, 48.91, -53.71)
CIE-LCHlch(47.02, 72.65, 312.32°)
OKLaboklab(56.42% 0.1047 -0.1519)
OKLCHoklch(56.42% 0.184 304.6)
XYZxyz(25.0472, 16.0364, 58.2641)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51CB #8DCB51
analogous
#5251CB #8F51CB #CB51CA
triadic
#8F51CB #CB8F51 #51CB8F
tetradic
#8F51CB #CB5251 #8DCB51 #51CACB
square
#8F51CB #CB5251 #8DCB51 #51CACB
split-complementary
#8F51CB #CACB51 #51CB52
monochromatic
#52257C #7033AC #8F51CB #AD80D9 #CCAFE7

Accessibility & contrast

On white

4.99
#8F51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8F51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51CB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51CB#FFFFFF#000000##FFFFFF
##8F51CB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ECF
Deuteranopia (green-blind)
#3570C8
Tritanopia (blue-blind)
#846A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8f51cb;
/* rgb */ color: rgb(143, 81, 203);
/* oklch */ color: oklch(56.4% 0.184 304.6);
Tailwind
colors: {
  custom: {
    50: '#b485db',
    500: '#8f51cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f51cb;
$custom-light: #b485db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51cb",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 270.492,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56424,
    "c": 0.18447,
    "h": 304.6
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#8F51CB
secondary
#BBD5A3
accent
#DD4A93
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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