#8F51DE#8F51DE

#8F51DE is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.206 H 300.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8F51DE
RGBrgb(143, 81, 222)
HSLhsl(266, 68%, 59%)
HSVhsv(266, 64%, 87%)
CMYKcmyk(35.6%, 63.5%, 0%, 12.9%)
CIE-LABlab(48.26, 53.53, -62.58)
CIE-LCHlch(48.26, 82.36, 310.54°)
OKLaboklab(57.71% 0.1037 -0.178)
OKLCHoklch(57.71% 0.206 300.2)
XYZxyz(27.4517, 16.9982, 70.9278)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51DE #A0DE51
analogous
#515ADE #8F51DE #D651DE
triadic
#8F51DE #DE8F51 #51DE8F
tetradic
#8F51DE #DE515A #A0DE51 #51DED6
square
#8F51DE #DE515A #A0DE51 #51DED6
split-complementary
#8F51DE #DED651 #5ADE51
monochromatic
#531D98 #6F27CB #8F51DE #B084E8 #D1B8F2

Accessibility & contrast

On white

4.77
#8F51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8F51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51DE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51DE#FFFFFF#000000##FFFFFF
##8F51DE1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E2
Deuteranopia (green-blind)
#1072DB
Tritanopia (blue-blind)
#7E7090
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f51de;
/* rgb */ color: rgb(143, 81, 222);
/* oklch */ color: oklch(57.7% 0.206 300.2);
Tailwind
colors: {
  custom: {
    50: '#b585e9',
    500: '#8f51de',
    950: '#000000',
  },
}
SCSS
$custom: #8f51de;
$custom-light: #b585e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51de",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 266.383,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57714,
    "c": 0.20596,
    "h": 300.2
  },
  "luminance": 0.16998
}

Semantic roles & 50–950 ramp

primary
#8F51DE
secondary
#C9E1AA
accent
#EB3D9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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