#9F5CE1#9F5CE1

#9F5CE1 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.2% C 0.197 H 304.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9F5CE1
RGBrgb(159, 92, 225)
HSLhsl(270, 69%, 62%)
HSVhsv(270, 59%, 88%)
CMYKcmyk(29.3%, 59.1%, 0%, 11.8%)
CIE-LABlab(52.36, 52.16, -57.59)
CIE-LCHlch(52.36, 77.70, 312.17°)
OKLaboklab(61.16% 0.1115 -0.1628)
OKLCHoklch(61.16% 0.197 304.4)
XYZxyz(31.7128, 20.4616, 73.4984)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CE1 #9EE15C
analogous
#5D5CE1 #9F5CE1 #E15CE0
triadic
#9F5CE1 #E19F5C #5CE19F
tetradic
#9F5CE1 #E15D5C #9EE15C #5CE0E1
square
#9F5CE1 #E15D5C #9EE15C #5CE0E1
split-complementary
#9F5CE1 #E0E15C #5CE15D
monochromatic
#621EA4 #8128D7 #9F5CE1 #BD90EB #DCC3F4

Accessibility & contrast

On white

4.12
#9F5CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9F5CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CE1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CE1#FFFFFF#000000##000000
##9F5CE11.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7BE5
Deuteranopia (green-blind)
#3E7DDE
Tritanopia (blue-blind)
#937796
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ce1;
/* rgb */ color: rgb(159, 92, 225);
/* oklch */ color: oklch(61.2% 0.197 304.4);
Tailwind
colors: {
  custom: {
    50: '#bf8deb',
    500: '#9f5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ce1;
$custom-light: #bf8deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ce1",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 270.226,
    "s": 68.912,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61156,
    "c": 0.19736,
    "h": 304.4
  },
  "luminance": 0.20461
}

Semantic roles & 50–950 ramp

primary
#9F5CE1
secondary
#CCE5B4
accent
#D11572
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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