#8F51DF#8F51DF

#8F51DF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.207 H 300.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8F51DF
RGBrgb(143, 81, 223)
HSLhsl(266, 69%, 60%)
HSVhsv(266, 64%, 87%)
CMYKcmyk(35.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(48.33, 53.78, -63.04)
CIE-LCHlch(48.33, 82.86, 310.47°)
OKLaboklab(57.79% 0.1036 -0.1793)
OKLCHoklch(57.79% 0.207 300)
XYZxyz(27.5861, 17.0520, 71.6357)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51DF #A1DF51
analogous
#515ADF #8F51DF #D651DF
triadic
#8F51DF #DF8F51 #51DF8F
tetradic
#8F51DF #DF515A #A1DF51 #51DFD6
square
#8F51DF #DF515A #A1DF51 #51DFD6
split-complementary
#8F51DF #DFD651 #5ADF51
monochromatic
#531C99 #6F26CD #8F51DF #B085E9 #D2B8F2

Accessibility & contrast

On white

4.76
#8F51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8F51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51DF
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51DF#FFFFFF#000000##FFFFFF
##8F51DF1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#0B72DC
Tritanopia (blue-blind)
#7D7191
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f51df;
/* rgb */ color: rgb(143, 81, 223);
/* oklch */ color: oklch(57.8% 0.207 300.0);
Tailwind
colors: {
  custom: {
    50: '#b585ea',
    500: '#8f51df',
    950: '#000000',
  },
}
SCSS
$custom: #8f51df;
$custom-light: #b585ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51df",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 266.197,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57785,
    "c": 0.20708,
    "h": 300
  },
  "luminance": 0.17052
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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