#8F5AEE#8F5AEE

#8F5AEE is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.1% C 0.212 H 295.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8F5AEE
RGBrgb(143, 90, 238)
HSLhsl(261, 81%, 64%)
HSVhsv(261, 62%, 93%)
CMYKcmyk(39.9%, 62.2%, 0%, 6.7%)
CIE-LABlab(51.06, 52.91, -67.07)
CIE-LCHlch(51.06, 85.43, 308.27°)
OKLaboklab(60.09% 0.0925 -0.1912)
OKLCHoklch(60.09% 0.212 295.8)
XYZxyz(30.4124, 19.3244, 83.0000)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5AEE #B9EE5A
analogous
#5A6FEE #8F5AEE #D95AEE
triadic
#8F5AEE #EE8F5A #5AEE8F
tetradic
#8F5AEE #EE5A6F #B9EE5A #5AEED9
square
#8F5AEE #EE5A6F #B9EE5A #5AEED9
split-complementary
#8F5AEE #EED95A #6FEE5A
monochromatic
#4F13BA #6923E8 #8F5AEE #B591F4 #DAC9F9

Accessibility & contrast

On white

4.32
#8F5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8F5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5AEE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5AEE#FFFFFF#000000##000000
##8F5AEE1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF3
Deuteranopia (green-blind)
#0078EB
Tritanopia (blue-blind)
#777C9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f5aee;
/* rgb */ color: rgb(143, 90, 238);
/* oklch */ color: oklch(60.1% 0.212 295.8);
Tailwind
colors: {
  custom: {
    50: '#b68bf4',
    500: '#8f5aee',
    950: '#000000',
  },
}
SCSS
$custom: #8f5aee;
$custom-light: #b68bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5aee",
  "rgb": {
    "r": 143,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 261.486,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6009,
    "c": 0.2124,
    "h": 295.8
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#8F5AEE
secondary
#D9ECB8
accent
#DE0891
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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