#8F5DE2#8F5DE2

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

Color values

HEX#8F5DE2
RGBrgb(143, 93, 226)
HSLhsl(263, 70%, 63%)
HSVhsv(263, 59%, 89%)
CMYKcmyk(36.7%, 58.8%, 0%, 11.4%)
CIE-LABlab(50.87, 48.23, -60.63)
CIE-LCHlch(50.87, 77.47, 308.50°)
OKLaboklab(59.7% 0.0898 -0.1722)
OKLCHoklch(59.7% 0.194 297.5)
XYZxyz(28.9660, 19.1589, 74.1087)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5DE2 #B0E25D
analogous
#5D6EE2 #8F5DE2 #D15DE2
triadic
#8F5DE2 #E28F5D #5DE28F
tetradic
#8F5DE2 #E25D6E #B0E25D #5DE2D1
square
#8F5DE2 #E25D6E #B0E25D #5DE2D1
split-complementary
#8F5DE2 #E2D15D #6EE25D
monochromatic
#511EA7 #6B29D9 #8F5DE2 #B391EB #D7C5F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F5DE2#FFFFFF#000000##000000
##8F5DE21.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)
#047AE6
Deuteranopia (green-blind)
#2978DF
Tritanopia (blue-blind)
#7C7997
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8f5de2;
/* rgb */ color: rgb(143, 93, 226);
/* oklch */ color: oklch(59.7% 0.194 297.5);
Tailwind
colors: {
  custom: {
    50: '#b58dec',
    500: '#8f5de2',
    950: '#000000',
  },
}
SCSS
$custom: #8f5de2;
$custom-light: #b58dec;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5de2",
  "rgb": {
    "r": 143,
    "g": 93,
    "b": 226
  },
  "hsl": {
    "h": 262.556,
    "s": 69.634,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59699,
    "c": 0.19423,
    "h": 297.5
  },
  "luminance": 0.19159
}

Semantic roles & 50–950 ramp

primary
#8F5DE2
secondary
#D3E6B5
accent
#D2148A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8F5DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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