#8F51D7#8F51D7

#8F51D7 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.2% C 0.198 H 301.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8F51D7
RGBrgb(143, 81, 215)
HSLhsl(268, 63%, 58%)
HSVhsv(268, 62%, 84%)
CMYKcmyk(33.5%, 62.3%, 0%, 15.7%)
CIE-LABlab(47.79, 51.82, -59.35)
CIE-LCHlch(47.79, 78.79, 311.12°)
OKLaboklab(57.23% 0.1042 -0.1685)
OKLCHoklch(57.23% 0.198 301.7)
XYZxyz(26.5330, 16.6307, 66.0890)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51D7 #99D751
analogous
#5156D7 #8F51D7 #D251D7
triadic
#8F51D7 #D78F51 #51D78F
tetradic
#8F51D7 #D75156 #99D751 #51D7D2
square
#8F51D7 #D75156 #99D751 #51D7D2
split-complementary
#8F51D7 #D7D251 #56D751
monochromatic
#53208D #702CBF #8F51D7 #AF83E2 #CFB5EE

Accessibility & contrast

On white

4.85
#8F51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8F51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51D7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51D7#FFFFFF#000000##FFFFFF
##8F51D71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#2371D4
Tritanopia (blue-blind)
#806E8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8f51d7;
/* rgb */ color: rgb(143, 81, 215);
/* oklch */ color: oklch(57.2% 0.198 301.7);
Tailwind
colors: {
  custom: {
    50: '#b485e4',
    500: '#8f51d7',
    950: '#000000',
  },
}
SCSS
$custom: #8f51d7;
$custom-light: #b485e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51d7",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 267.761,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57229,
    "c": 0.19807,
    "h": 301.7
  },
  "luminance": 0.16631
}

Semantic roles & 50–950 ramp

primary
#8F51D7
secondary
#C4DDA7
accent
#E6429A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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