#8F51EA#8F51EA

#8F51EA is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.6% C 0.219 H 297.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8F51EA
RGBrgb(143, 81, 234)
HSLhsl(264, 78%, 62%)
HSVhsv(264, 65%, 92%)
CMYKcmyk(38.9%, 65.4%, 0%, 8.2%)
CIE-LABlab(49.09, 56.52, -68.03)
CIE-LCHlch(49.09, 88.44, 309.72°)
OKLaboklab(58.57% 0.1025 -0.194)
OKLCHoklch(58.57% 0.219 297.9)
XYZxyz(29.1176, 17.6646, 79.7015)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51EA #ACEA51
analogous
#5160EA #8F51EA #DC51EA
triadic
#8F51EA #EA8F51 #51EA8F
tetradic
#8F51EA #EA5160 #ACEA51 #51EADC
square
#8F51EA #EA5160 #ACEA51 #51EADC
split-complementary
#8F51EA #EADC51 #60EA51
monochromatic
#5215AC #6C1BE2 #8F51EA #B288F1 #D5BEF7

Accessibility & contrast

On white

4.63
#8F51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8F51EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51EA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51EA#FFFFFF#000000##FFFFFF
##8F51EA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#797597
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8f51ea;
/* rgb */ color: rgb(143, 81, 234);
/* oklch */ color: oklch(58.6% 0.219 297.9);
Tailwind
colors: {
  custom: {
    50: '#b686f2',
    500: '#8f51ea',
    950: '#000000',
  },
}
SCSS
$custom: #8f51ea;
$custom-light: #b686f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51ea",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 264.314,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58574,
    "c": 0.21938,
    "h": 297.9
  },
  "luminance": 0.17665
}

Semantic roles & 50–950 ramp

primary
#8F51EA
secondary
#D1E8AF
accent
#DB0B86
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8F51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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