#8F51E1#8F51E1

#8F51E1 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.9% C 0.209 H 299.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8F51E1
RGBrgb(143, 81, 225)
HSLhsl(266, 71%, 60%)
HSVhsv(266, 64%, 88%)
CMYKcmyk(36.4%, 64%, 0%, 11.8%)
CIE-LABlab(48.46, 54.27, -63.96)
CIE-LCHlch(48.46, 83.88, 310.32°)
OKLaboklab(57.93% 0.1034 -0.182)
OKLCHoklch(57.93% 0.209 299.6)
XYZxyz(27.8574, 17.1605, 73.0642)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51E1 #A3E151
analogous
#515BE1 #8F51E1 #D751E1
triadic
#8F51E1 #E18F51 #51E18F
tetradic
#8F51E1 #E1515B #A3E151 #51E1D7
square
#8F51E1 #E1515B #A3E151 #51E1D7
split-complementary
#8F51E1 #E1D751 #5BE151
monochromatic
#531B9D #6E24D1 #8F51E1 #B185EA #D2B9F3

Accessibility & contrast

On white

4.74
#8F51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8F51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51E1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51E1#FFFFFF#000000##FFFFFF
##8F51E11.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#7D7192
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f51e1;
/* rgb */ color: rgb(143, 81, 225);
/* oklch */ color: oklch(57.9% 0.209 299.6);
Tailwind
colors: {
  custom: {
    50: '#b585eb',
    500: '#8f51e1',
    950: '#000000',
  },
}
SCSS
$custom: #8f51e1;
$custom-light: #b585eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51e1",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 265.833,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.57926,
    "c": 0.20933,
    "h": 299.6
  },
  "luminance": 0.17161
}

Semantic roles & 50–950 ramp

primary
#8F51E1
secondary
#CBE3AB
accent
#ED3AA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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