#9F5BDF#9F5BDF

#9F5BDF is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.9% C 0.197 H 305.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9F5BDF
RGBrgb(159, 91, 223)
HSLhsl(271, 67%, 62%)
HSVhsv(271, 59%, 87%)
CMYKcmyk(28.7%, 59.2%, 0%, 12.5%)
CIE-LABlab(52.04, 52.20, -56.96)
CIE-LCHlch(52.04, 77.27, 312.50°)
OKLaboklab(60.89% 0.1128 -0.161)
OKLCHoklch(60.89% 0.197 305)
XYZxyz(31.3555, 20.1810, 72.0412)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BDF #9BDF5B
analogous
#5D5BDF #9F5BDF #DF5BDD
triadic
#9F5BDF #DF9F5B #5BDF9F
tetradic
#9F5BDF #DF5D5B #9BDF5B #5BDDDF
square
#9F5BDF #DF5D5B #9BDF5B #5BDDDF
split-complementary
#9F5BDF #DDDF5B #5BDF5D
monochromatic
#621FA0 #8129D4 #9F5BDF #BD8EE9 #DBC1F3

Accessibility & contrast

On white

4.17
#9F5BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9F5BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BDF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BDF#FFFFFF#000000##000000
##9F5BDF1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7AE3
Deuteranopia (green-blind)
#3F7CDC
Tritanopia (blue-blind)
#947594
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f5bdf;
/* rgb */ color: rgb(159, 91, 223);
/* oklch */ color: oklch(60.9% 0.197 305.0);
Tailwind
colors: {
  custom: {
    50: '#bf8cea',
    500: '#9f5bdf',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bdf;
$custom-light: #bf8cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bdf",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 223
  },
  "hsl": {
    "h": 270.909,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60888,
    "c": 0.19656,
    "h": 305
  },
  "luminance": 0.20181
}

Semantic roles & 50–950 ramp

primary
#9F5BDF
secondary
#CAE3B2
accent
#CF1670
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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