#9F5BDB#9F5BDB

#9F5BDB is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.6% C 0.192 H 306.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9F5BDB
RGBrgb(159, 91, 219)
HSLhsl(272, 64%, 61%)
HSVhsv(272, 58%, 86%)
CMYKcmyk(27.4%, 58.4%, 0%, 14.1%)
CIE-LABlab(51.80, 51.27, -55.08)
CIE-LCHlch(51.80, 75.25, 312.95°)
OKLaboklab(60.63% 0.1128 -0.1555)
OKLCHoklch(60.63% 0.192 306)
XYZxyz(30.8226, 19.9678, 69.2345)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BDB #97DB5B
analogous
#5F5BDB #9F5BDB #DB5BD7
triadic
#9F5BDB #DB9F5B #5BDB9F
tetradic
#9F5BDB #DB5F5B #97DB5B #5BD7DB
square
#9F5BDB #DB5F5B #97DB5B #5BD7DB
split-complementary
#9F5BDB #D7DB5B #5BDB5F
monochromatic
#62229A #812DCC #9F5BDB #BC8DE6 #DABFF1

Accessibility & contrast

On white

4.21
#9F5BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9F5BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BDB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BDB#FFFFFF#000000##000000
##9F5BDB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2479DF
Deuteranopia (green-blind)
#437CD8
Tritanopia (blue-blind)
#957492
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f5bdb;
/* rgb */ color: rgb(159, 91, 219);
/* oklch */ color: oklch(60.6% 0.192 306.0);
Tailwind
colors: {
  custom: {
    50: '#bf8ce7',
    500: '#9f5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bdb;
$custom-light: #bf8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bdb",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 271.875,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60635,
    "c": 0.19209,
    "h": 306
  },
  "luminance": 0.19968
}

Semantic roles & 50–950 ramp

primary
#9F5BDB
secondary
#C7E1B1
accent
#CC1A6D
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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