#8F5CE5#8F5CE5

#8F5CE5 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.8% C 0.199 H 297.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8F5CE5
RGBrgb(143, 92, 229)
HSLhsl(262, 72%, 63%)
HSVhsv(262, 60%, 90%)
CMYKcmyk(37.6%, 59.8%, 0%, 10.2%)
CIE-LABlab(50.86, 49.54, -62.34)
CIE-LCHlch(50.86, 79.62, 308.47°)
OKLaboklab(59.75% 0.0908 -0.1773)
OKLCHoklch(59.75% 0.199 297.1)
XYZxyz(29.2941, 19.1506, 76.2666)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CE5 #B2E55C
analogous
#5C6DE5 #8F5CE5 #D45CE5
triadic
#8F5CE5 #E58F5C #5CE58F
tetradic
#8F5CE5 #E55C6D #B2E55C #5CE5D4
square
#8F5CE5 #E55C6D #B2E55C #5CE5D4
split-complementary
#8F5CE5 #E5D45C #6DE55C
monochromatic
#511BAB #6B27DD #8F5CE5 #B391ED #D8C6F6

Accessibility & contrast

On white

4.35
#8F5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8F5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5CE5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CE5#FFFFFF#000000##000000
##8F5CE51.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#2077E2
Tritanopia (blue-blind)
#7B7A98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8f5ce5;
/* rgb */ color: rgb(143, 92, 229);
/* oklch */ color: oklch(59.8% 0.199 297.1);
Tailwind
colors: {
  custom: {
    50: '#b58cee',
    500: '#8f5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #8f5ce5;
$custom-light: #b58cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5ce5",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 262.336,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59753,
    "c": 0.19918,
    "h": 297.1
  },
  "luminance": 0.19151
}

Semantic roles & 50–950 ramp

primary
#8F5CE5
secondary
#D5E7B6
accent
#D5118C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8F5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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