#8F51E4#8F51E4

#8F51E4 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.1% C 0.213 H 299.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8F51E4
RGBrgb(143, 81, 228)
HSLhsl(265, 73%, 61%)
HSVhsv(265, 64%, 89%)
CMYKcmyk(37.3%, 64.5%, 0%, 10.6%)
CIE-LABlab(48.67, 55.02, -65.32)
CIE-LCHlch(48.67, 85.40, 310.11°)
OKLaboklab(58.14% 0.1031 -0.186)
OKLCHoklch(58.14% 0.213 299)
XYZxyz(28.2702, 17.3256, 75.2385)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51E4 #A6E451
analogous
#515CE4 #8F51E4 #D851E4
triadic
#8F51E4 #E48F51 #51E48F
tetradic
#8F51E4 #E4515C #A6E451 #51E4D8
square
#8F51E4 #E4515C #A6E451 #51E4D8
split-complementary
#8F51E4 #E4D851 #5CE451
monochromatic
#5319A2 #6E21D7 #8F51E4 #B186EC #D3BBF4

Accessibility & contrast

On white

4.70
#8F51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8F51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51E4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51E4#FFFFFF#000000##FFFFFF
##8F51E41.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#7C7294
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8f51e4;
/* rgb */ color: rgb(143, 81, 228);
/* oklch */ color: oklch(58.1% 0.213 299.0);
Tailwind
colors: {
  custom: {
    50: '#b585ed',
    500: '#8f51e4',
    950: '#000000',
  },
}
SCSS
$custom: #8f51e4;
$custom-light: #b585ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51e4",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 265.306,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5814,
    "c": 0.21269,
    "h": 299
  },
  "luminance": 0.17326
}

Semantic roles & 50–950 ramp

primary
#8F51E4
secondary
#CDE4AC
accent
#D51082
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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