#8F5DC2#8F5DC2

#8F5DC2 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.156 H 304.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8F5DC2
RGBrgb(143, 93, 194)
HSLhsl(270, 45%, 56%)
HSVhsv(270, 52%, 76%)
CMYKcmyk(26.3%, 52.1%, 0%, 23.9%)
CIE-LABlab(48.96, 40.25, -45.42)
CIE-LCHlch(48.96, 60.69, 311.55°)
OKLaboklab(57.68% 0.089 -0.1277)
OKLCHoklch(57.68% 0.156 304.9)
XYZxyz(24.9776, 17.5635, 53.1027)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5DC2 #90C25D
analogous
#5D5EC2 #8F5DC2 #C25DC2
triadic
#8F5DC2 #C28F5D #5DC28F
tetradic
#8F5DC2 #C25D5E #90C25D #5DC2C2
square
#8F5DC2 #C25D5E #90C25D #5DC2C2
split-complementary
#8F5DC2 #C2C25D #5EC25D
monochromatic
#522D78 #703EA4 #8F5DC2 #AE89D3 #CCB6E3

Accessibility & contrast

On white

4.65
#8F5DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8F5DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8F5DC2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5DC2#FFFFFF#000000##FFFFFF
##8F5DC21.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D73C5
Deuteranopia (green-blind)
#4C74C0
Tritanopia (blue-blind)
#866F87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8f5dc2;
/* rgb */ color: rgb(143, 93, 194);
/* oklch */ color: oklch(57.7% 0.156 304.9);
Tailwind
colors: {
  custom: {
    50: '#b28cd5',
    500: '#8f5dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8f5dc2;
$custom-light: #b28cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5dc2",
  "rgb": {
    "r": 143,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 269.703,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.1556,
    "h": 304.9
  },
  "luminance": 0.17563
}

Semantic roles & 50–950 ramp

primary
#8F5DC2
secondary
#BED2A9
accent
#D55395
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8F5DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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