#9F5BEA#9F5BEA

#9F5BEA is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.209 H 302.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9F5BEA
RGBrgb(159, 91, 234)
HSLhsl(269, 77%, 64%)
HSVhsv(269, 61%, 92%)
CMYKcmyk(32.1%, 61.1%, 0%, 8.2%)
CIE-LABlab(52.72, 54.80, -62.06)
CIE-LCHlch(52.72, 82.79, 311.44°)
OKLaboklab(61.6% 0.1125 -0.1759)
OKLCHoklch(61.6% 0.209 302.6)
XYZxyz(32.8870, 20.7936, 80.1069)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BEA #A6EA5B
analogous
#5B5EEA #9F5BEA #E65BEA
triadic
#9F5BEA #EA9F5B #5BEA9F
tetradic
#9F5BEA #EA5B5E #A6EA5B #5BEAE6
square
#9F5BEA #EA5B5E #A6EA5B #5BEAE6
split-complementary
#9F5BEA #EAE65B #5EEA5B
monochromatic
#6117B4 #7F25E3 #9F5BEA #BF91F1 #DFC8F8

Accessibility & contrast

On white

4.07
#9F5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9F5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BEA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BEA#FFFFFF#000000##000000
##9F5BEA1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#307DE7
Tritanopia (blue-blind)
#90799A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5bea;
/* rgb */ color: rgb(159, 91, 234);
/* oklch */ color: oklch(61.6% 0.209 302.6);
Tailwind
colors: {
  custom: {
    50: '#c08df1',
    500: '#9f5bea',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bea;
$custom-light: #c08df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bea",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 268.531,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61602,
    "c": 0.20881,
    "h": 302.6
  },
  "luminance": 0.20794
}

Semantic roles & 50–950 ramp

primary
#9F5BEA
secondary
#D2EAB7
accent
#DA0C78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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