#8F5AE4#8F5AE4

#8F5AE4 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.201 H 297.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8F5AE4
RGBrgb(143, 90, 228)
HSLhsl(263, 72%, 62%)
HSVhsv(263, 61%, 89%)
CMYKcmyk(37.3%, 60.5%, 0%, 10.6%)
CIE-LABlab(50.40, 50.35, -62.53)
CIE-LCHlch(50.40, 80.28, 308.84°)
OKLaboklab(59.39% 0.0932 -0.1778)
OKLCHoklch(59.39% 0.201 297.7)
XYZxyz(28.9839, 18.7530, 75.4764)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5AE4 #AFE45A
analogous
#5A6AE4 #8F5AE4 #D45AE4
triadic
#8F5AE4 #E48F5A #5AE48F
tetradic
#8F5AE4 #E45A6A #AFE45A #5AE4D4
square
#8F5AE4 #E45A6A #AFE45A #5AE4D4
split-complementary
#8F5AE4 #E4D45A #6AE45A
monochromatic
#511CA8 #6B25DB #8F5AE4 #B38FED #D6C3F5

Accessibility & contrast

On white

4.42
#8F5AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8F5AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5AE4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5AE4#FFFFFF#000000##000000
##8F5AE41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#1D76E1
Tritanopia (blue-blind)
#7B7897
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8f5ae4;
/* rgb */ color: rgb(143, 90, 228);
/* oklch */ color: oklch(59.4% 0.201 297.7);
Tailwind
colors: {
  custom: {
    50: '#b58bed',
    500: '#8f5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #8f5ae4;
$custom-light: #b58bed;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5ae4",
  "rgb": {
    "r": 143,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 263.043,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59393,
    "c": 0.20074,
    "h": 297.7
  },
  "luminance": 0.18753
}

Semantic roles & 50–950 ramp

primary
#8F5AE4
secondary
#D3E6B4
accent
#D41289
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8F5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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