#9F5BDA#9F5BDA

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

Color values

HEX#9F5BDA
RGBrgb(159, 91, 218)
HSLhsl(272, 63%, 61%)
HSVhsv(272, 58%, 85%)
CMYKcmyk(27.1%, 58.3%, 0%, 14.5%)
CIE-LABlab(51.74, 51.04, -54.61)
CIE-LCHlch(51.74, 74.75, 313.06°)
OKLaboklab(60.57% 0.1128 -0.1541)
OKLCHoklch(60.57% 0.191 306.2)
XYZxyz(30.6914, 19.9153, 68.5433)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BDA #96DA5B
analogous
#5F5BDA #9F5BDA #DA5BD5
triadic
#9F5BDA #DA9F5B #5BDA9F
tetradic
#9F5BDA #DA5F5B #96DA5B #5BD5DA
square
#9F5BDA #DA5F5B #96DA5B #5BD5DA
split-complementary
#9F5BDA #D5DA5B #5BDA5F
monochromatic
#612298 #812ECA #9F5BDA #BC8DE5 #D9BFF1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F5BDA#FFFFFF#000000##000000
##9F5BDA1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2679DE
Deuteranopia (green-blind)
#447CD7
Tritanopia (blue-blind)
#957492
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f5bda;
/* rgb */ color: rgb(159, 91, 218);
/* oklch */ color: oklch(60.6% 0.191 306.2);
Tailwind
colors: {
  custom: {
    50: '#bf8ce6',
    500: '#9f5bda',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bda;
$custom-light: #bf8ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bda",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 272.126,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60573,
    "c": 0.19097,
    "h": 306.2
  },
  "luminance": 0.19915
}

Semantic roles & 50–950 ramp

primary
#9F5BDA
secondary
#C7E1B0
accent
#CB1B6C
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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