#9F5ADF#9F5ADF

#9F5ADF is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.7% C 0.198 H 305.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9F5ADF
RGBrgb(159, 90, 223)
HSLhsl(271, 68%, 61%)
HSVhsv(271, 60%, 87%)
CMYKcmyk(28.7%, 59.6%, 0%, 12.5%)
CIE-LABlab(51.85, 52.72, -57.27)
CIE-LCHlch(51.85, 77.84, 312.63°)
OKLaboklab(60.75% 0.114 -0.1619)
OKLCHoklch(60.75% 0.198 305.1)
XYZxyz(31.2706, 20.0112, 72.0129)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5ADF #9ADF5A
analogous
#5D5ADF #9F5ADF #DF5ADD
triadic
#9F5ADF #DF9F5A #5ADF9F
tetradic
#9F5ADF #DF5D5A #9ADF5A #5ADDDF
square
#9F5ADF #DF5D5A #9ADF5A #5ADDDF
split-complementary
#9F5ADF #DDDF5A #5ADF5D
monochromatic
#621FA0 #8129D3 #9F5ADF #BD8DE9 #DBC1F3

Accessibility & contrast

On white

4.20
#9F5ADF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9F5ADF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5ADF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5ADF#FFFFFF#000000##000000
##9F5ADF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#187AE3
Deuteranopia (green-blind)
#3D7CDC
Tritanopia (blue-blind)
#947594
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f5adf;
/* rgb */ color: rgb(159, 90, 223);
/* oklch */ color: oklch(60.7% 0.198 305.1);
Tailwind
colors: {
  custom: {
    50: '#bf8cea',
    500: '#9f5adf',
    950: '#000000',
  },
}
SCSS
$custom: #9f5adf;
$custom-light: #bf8cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5adf",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 223
  },
  "hsl": {
    "h": 271.128,
    "s": 67.513,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.19798,
    "h": 305.1
  },
  "luminance": 0.20011
}

Semantic roles & 50–950 ramp

primary
#9F5ADF
secondary
#C9E3B2
accent
#CF166F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5ADF

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

Preview Lab → · Contrast checker → · Palette generator →

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