#8F5CEB#8F5CEB

#8F5CEB is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.2% C 0.206 H 296.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8F5CEB
RGBrgb(143, 92, 235)
HSLhsl(261, 78%, 64%)
HSVhsv(261, 61%, 92%)
CMYKcmyk(39.1%, 60.9%, 0%, 7.8%)
CIE-LABlab(51.26, 51.08, -65.08)
CIE-LCHlch(51.26, 82.73, 308.13°)
OKLaboklab(60.17% 0.0905 -0.1853)
OKLCHoklch(60.17% 0.206 296)
XYZxyz(30.1463, 19.4915, 80.7551)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F5CEB #B8EB5C
analogous
#5C71EB #8F5CEB #D75CEB
triadic
#8F5CEB #EB8F5C #5CEB8F
tetradic
#8F5CEB #EB5C71 #B8EB5C #5CEBD7
square
#8F5CEB #EB5C71 #B8EB5C #5CEBD7
split-complementary
#8F5CEB #EBD75C #71EB5C
monochromatic
#4F16B6 #6A25E4 #8F5CEB #B493F2 #DAC9F8

Accessibility & contrast

On white

4.29
#8F5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8F5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F5CEB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F5CEB#FFFFFF#000000##000000
##8F5CEB1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0C78E8
Tritanopia (blue-blind)
#787C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8f5ceb;
/* rgb */ color: rgb(143, 92, 235);
/* oklch */ color: oklch(60.2% 0.206 296.0);
Tailwind
colors: {
  custom: {
    50: '#b58cf2',
    500: '#8f5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8f5ceb;
$custom-light: #b58cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f5ceb",
  "rgb": {
    "r": 143,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 261.399,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60166,
    "c": 0.20625,
    "h": 296
  },
  "luminance": 0.19492
}

Semantic roles & 50–950 ramp

primary
#8F5CEB
secondary
#D9EAB8
accent
#DA0B90
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8F5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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