#8F51DC#8F51DC

#8F51DC is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.204 H 300.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8F51DC
RGBrgb(143, 81, 220)
HSLhsl(267, 67%, 59%)
HSVhsv(267, 63%, 86%)
CMYKcmyk(35%, 63.2%, 0%, 13.7%)
CIE-LABlab(48.12, 53.04, -61.66)
CIE-LCHlch(48.12, 81.34, 310.70°)
OKLaboklab(57.57% 0.1038 -0.1753)
OKLCHoklch(57.57% 0.204 300.6)
XYZxyz(27.1853, 16.8916, 69.5244)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51DC #9EDC51
analogous
#5159DC #8F51DC #D551DC
triadic
#8F51DC #DC8F51 #51DC8F
tetradic
#8F51DC #DC5159 #9EDC51 #51DCD5
square
#8F51DC #DC5159 #9EDC51 #51DCD5
split-complementary
#8F51DC #DCD551 #59DC51
monochromatic
#531E95 #6F28C8 #8F51DC #B084E6 #D1B7F0

Accessibility & contrast

On white

4.80
#8F51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8F51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51DC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51DC#FFFFFF#000000##FFFFFF
##8F51DC1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#1771D9
Tritanopia (blue-blind)
#7F708F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8f51dc;
/* rgb */ color: rgb(143, 81, 220);
/* oklch */ color: oklch(57.6% 0.204 300.6);
Tailwind
colors: {
  custom: {
    50: '#b585e8',
    500: '#8f51dc',
    950: '#000000',
  },
}
SCSS
$custom: #8f51dc;
$custom-light: #b585e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51dc",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 266.763,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57574,
    "c": 0.20371,
    "h": 300.6
  },
  "luminance": 0.16892
}

Semantic roles & 50–950 ramp

primary
#8F51DC
secondary
#C7E0A9
accent
#E93E9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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