#8F5DF1#8F5DF1

#8F5DF1 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.212 H 294.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8F5DF1
RGBrgb(143, 93, 241)
HSLhsl(260, 84%, 65%)
HSVhsv(260, 61%, 95%)
CMYKcmyk(40.7%, 61.4%, 0%, 5.5%)
CIE-LABlab(51.86, 52.11, -67.47)
CIE-LCHlch(51.86, 85.25, 307.68°)
OKLaboklab(60.73% 0.0891 -0.1923)
OKLCHoklch(60.73% 0.212 294.8)
XYZxyz(31.1150, 20.0185, 85.4266)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5DF1 #BFF15D
analogous
#5D75F1 #8F5DF1 #D95DF1
triadic
#8F5DF1 #F18F5D #5DF18F
tetradic
#8F5DF1 #F15D75 #BFF15D #5DF1D9
square
#8F5DF1 #F15D75 #BFF15D #5DF1D9
split-complementary
#8F5DF1 #F1D95D #75F15D
monochromatic
#4D11C3 #6825EC #8F5DF1 #B695F6 #DDCEFB

Accessibility & contrast

On white

4.20
#8F5DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8F5DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5DF1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5DF1#FFFFFF#000000##000000
##8F5DF11.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#757E9E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f5df1;
/* rgb */ color: rgb(143, 93, 241);
/* oklch */ color: oklch(60.7% 0.212 294.8);
Tailwind
colors: {
  custom: {
    50: '#b68df6',
    500: '#8f5df1',
    950: '#000000',
  },
}
SCSS
$custom: #8f5df1;
$custom-light: #b68df6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5df1",
  "rgb": {
    "r": 143,
    "g": 93,
    "b": 241
  },
  "hsl": {
    "h": 260.27,
    "s": 84.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.21196,
    "h": 294.8
  },
  "luminance": 0.20019
}

Semantic roles & 50–950 ramp

primary
#8F5DF1
secondary
#DDEEBC
accent
#E10596
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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