#8F5CEC#8F5CEC

#8F5CEC is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.2% C 0.207 H 295.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8F5CEC
RGBrgb(143, 92, 236)
HSLhsl(261, 79%, 64%)
HSVhsv(261, 61%, 93%)
CMYKcmyk(39.4%, 61%, 0%, 7.5%)
CIE-LABlab(51.32, 51.34, -65.53)
CIE-LCHlch(51.32, 83.25, 308.08°)
OKLaboklab(60.24% 0.0905 -0.1866)
OKLCHoklch(60.24% 0.207 295.9)
XYZxyz(30.2912, 19.5495, 81.5181)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CEC #B9EC5C
analogous
#5C71EC #8F5CEC #D75CEC
triadic
#8F5CEC #EC8F5C #5CEC8F
tetradic
#8F5CEC #EC5C71 #B9EC5C #5CECD7
square
#8F5CEC #EC5C71 #B9EC5C #5CECD7
split-complementary
#8F5CEC #ECD75C #71EC5C
monochromatic
#4F15B8 #6925E6 #8F5CEC #B593F2 #DACAF9

Accessibility & contrast

On white

4.28
#8F5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8F5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5CEC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CEC#FFFFFF#000000##000000
##8F5CEC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0678E9
Tritanopia (blue-blind)
#787C9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f5cec;
/* rgb */ color: rgb(143, 92, 236);
/* oklch */ color: oklch(60.2% 0.207 295.9);
Tailwind
colors: {
  custom: {
    50: '#b68cf3',
    500: '#8f5cec',
    950: '#000000',
  },
}
SCSS
$custom: #8f5cec;
$custom-light: #b68cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5cec",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 261.25,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60236,
    "c": 0.20742,
    "h": 295.9
  },
  "luminance": 0.1955
}

Semantic roles & 50–950 ramp

primary
#8F5CEC
secondary
#D9EBB9
accent
#DB0A91
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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