#8F5DE5#8F5DE5

#8F5DE5 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.9% C 0.198 H 297.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8F5DE5
RGBrgb(143, 93, 229)
HSLhsl(262, 72%, 63%)
HSVhsv(262, 59%, 90%)
CMYKcmyk(37.6%, 59.4%, 0%, 10.2%)
CIE-LABlab(51.07, 49.00, -62.01)
CIE-LCHlch(51.07, 79.03, 308.32°)
OKLaboklab(59.9% 0.0897 -0.1763)
OKLCHoklch(59.9% 0.198 297)
XYZxyz(29.3813, 19.3250, 76.2957)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5DE5 #B3E55D
analogous
#5D6FE5 #8F5DE5 #D35DE5
triadic
#8F5DE5 #E58F5D #5DE58F
tetradic
#8F5DE5 #E55D6F #B3E55D #5DE5D3
square
#8F5DE5 #E55D6F #B3E55D #5DE5D3
split-complementary
#8F5DE5 #E5D35D #6FE55D
monochromatic
#511CAC #6B28DD #8F5DE5 #B392ED #D8C6F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F5DE5#FFFFFF#000000##000000
##8F5DE51.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)
#007AE9
Deuteranopia (green-blind)
#2378E2
Tritanopia (blue-blind)
#7B7A98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f5de5;
/* rgb */ color: rgb(143, 93, 229);
/* oklch */ color: oklch(59.9% 0.198 297.0);
Tailwind
colors: {
  custom: {
    50: '#b58dee',
    500: '#8f5de5',
    950: '#000000',
  },
}
SCSS
$custom: #8f5de5;
$custom-light: #b58dee;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5de5",
  "rgb": {
    "r": 143,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 262.059,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.1978,
    "h": 297
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#8F5DE5
secondary
#D5E7B7
accent
#D4118D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8F5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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