#9F5DE3#9F5DE3

#9F5DE3 is a mid, vivid violet. Relative luminance 0.207; OKLCH L 61.4% C 0.198 H 303.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9F5DE3
RGBrgb(159, 93, 227)
HSLhsl(270, 71%, 63%)
HSVhsv(270, 59%, 89%)
CMYKcmyk(30%, 59%, 0%, 11%)
CIE-LABlab(52.67, 52.11, -58.21)
CIE-LCHlch(52.67, 78.13, 311.84°)
OKLaboklab(61.43% 0.1103 -0.1646)
OKLCHoklch(61.43% 0.198 303.8)
XYZxyz(32.0744, 20.7458, 74.9727)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DE3 #A1E35D
analogous
#5D5EE3 #9F5DE3 #E25DE3
triadic
#9F5DE3 #E39F5D #5DE39F
tetradic
#9F5DE3 #E35D5E #A1E35D #5DE3E2
square
#9F5DE3 #E35D5E #A1E35D #5DE3E2
split-complementary
#9F5DE3 #E3E25D #5EE35D
monochromatic
#621DA8 #8029DA #9F5DE3 #BE91EC #DDC5F5

Accessibility & contrast

On white

4.08
#9F5DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9F5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DE3
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DE3#FFFFFF#000000##000000
##9F5DE31.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7CE7
Deuteranopia (green-blind)
#3D7EE0
Tritanopia (blue-blind)
#927897
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5de3;
/* rgb */ color: rgb(159, 93, 227);
/* oklch */ color: oklch(61.4% 0.198 303.8);
Tailwind
colors: {
  custom: {
    50: '#bf8eec',
    500: '#9f5de3',
    950: '#000000',
  },
}
SCSS
$custom: #9f5de3;
$custom-light: #bf8eec;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5de3",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 269.552,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61425,
    "c": 0.19819,
    "h": 303.8
  },
  "luminance": 0.20746
}

Semantic roles & 50–950 ramp

primary
#9F5DE3
secondary
#CEE6B6
accent
#D31374
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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