#9F5ADD#9F5ADD

#9F5ADD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.6% C 0.196 H 305.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9F5ADD
RGBrgb(159, 90, 221)
HSLhsl(272, 66%, 61%)
HSVhsv(272, 59%, 87%)
CMYKcmyk(28.1%, 59.3%, 0%, 13.3%)
CIE-LABlab(51.73, 52.25, -56.33)
CIE-LCHlch(51.73, 76.83, 312.85°)
OKLaboklab(60.62% 0.114 -0.1591)
OKLCHoklch(60.62% 0.196 305.6)
XYZxyz(31.0026, 19.9039, 70.6012)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5ADD #98DD5A
analogous
#5D5ADD #9F5ADD #DD5AD9
triadic
#9F5ADD #DD9F5A #5ADD9F
tetradic
#9F5ADD #DD5D5A #98DD5A #5AD9DD
square
#9F5ADD #DD5D5A #98DD5A #5AD9DD
split-complementary
#9F5ADD #D9DD5A #5ADD5D
monochromatic
#62209C #812BCF #9F5ADD #BD8DE7 #DABFF2

Accessibility & contrast

On white

4.22
#9F5ADD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9F5ADD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5ADD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5ADD#FFFFFF#000000##000000
##9F5ADD1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D79E1
Deuteranopia (green-blind)
#407CDA
Tritanopia (blue-blind)
#947493
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f5add;
/* rgb */ color: rgb(159, 90, 221);
/* oklch */ color: oklch(60.6% 0.196 305.6);
Tailwind
colors: {
  custom: {
    50: '#bf8ce8',
    500: '#9f5add',
    950: '#000000',
  },
}
SCSS
$custom: #9f5add;
$custom-light: #bf8ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5add",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 221
  },
  "hsl": {
    "h": 271.603,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.19576,
    "h": 305.6
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#9F5ADD
secondary
#C8E2B1
accent
#CE186E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5ADD

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

Preview Lab → · Contrast checker → · Palette generator →

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