#9E5FDD#9E5FDD

#9E5FDD is a mid, vivid violet. Relative luminance 0.207; OKLCH L 61.2% C 0.188 H 304.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9E5FDD
RGBrgb(158, 95, 221)
HSLhsl(270, 65%, 62%)
HSVhsv(270, 57%, 87%)
CMYKcmyk(28.5%, 57%, 0%, 13.3%)
CIE-LABlab(52.59, 49.41, -54.96)
CIE-LCHlch(52.59, 73.91, 311.96°)
OKLaboklab(61.23% 0.1066 -0.1551)
OKLCHoklch(61.23% 0.188 304.5)
XYZxyz(31.2410, 20.6741, 70.7373)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5FDD #9EDD5F
analogous
#5F5FDD #9E5FDD #DD5FDD
triadic
#9E5FDD #DD9E5F #5FDD9E
tetradic
#9E5FDD #DD5F5F #9EDD5F #5FDDDD
square
#9E5FDD #DD5F5F #9EDD5F #5FDDDD
split-complementary
#9E5FDD #DDDD5F #5FDD5F
monochromatic
#6122A0 #7F2DD2 #9E5FDD #BD91E8 #DBC4F2

Accessibility & contrast

On white

4.09
#9E5FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9E5FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5FDD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5FDD#FFFFFF#000000##000000
##9E5FDD1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7CE1
Deuteranopia (green-blind)
#457EDA
Tritanopia (blue-blind)
#937895
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9e5fdd;
/* rgb */ color: rgb(158, 95, 221);
/* oklch */ color: oklch(61.2% 0.188 304.5);
Tailwind
colors: {
  custom: {
    50: '#be8fe8',
    500: '#9e5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #9e5fdd;
$custom-light: #be8fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5fdd",
  "rgb": {
    "r": 158,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 270,
    "s": 64.948,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61226,
    "c": 0.18823,
    "h": 304.5
  },
  "luminance": 0.20674
}

Semantic roles & 50–950 ramp

primary
#9E5FDD
secondary
#CCE3B5
accent
#CD1973
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D16
muted
#817D84

Preview Lab

Preview with #9E5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

#9E5FDD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva