#9F5BE5#9F5BE5

#9F5BE5 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.203 H 303.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9F5BE5
RGBrgb(159, 91, 229)
HSLhsl(270, 73%, 63%)
HSVhsv(270, 60%, 90%)
CMYKcmyk(30.6%, 60.3%, 0%, 10.2%)
CIE-LABlab(52.41, 53.61, -59.76)
CIE-LCHlch(52.41, 80.28, 311.90°)
OKLaboklab(61.27% 0.1126 -0.1692)
OKLCHoklch(61.27% 0.203 303.7)
XYZxyz(32.1788, 20.5103, 76.3772)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BE5 #A1E55B
analogous
#5B5CE5 #9F5BE5 #E45BE5
triadic
#9F5BE5 #E59F5B #5BE59F
tetradic
#9F5BE5 #E55B5C #A1E55B #5BE5E4
square
#9F5BE5 #E55B5C #A1E55B #5BE5E4
split-complementary
#9F5BE5 #E5E45B #5CE55B
monochromatic
#621BAB #8026DD #9F5BE5 #BE90ED #DDC5F6

Accessibility & contrast

On white

4.12
#9F5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9F5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BE5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BE5#FFFFFF#000000##000000
##9F5BE51.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#087BE9
Deuteranopia (green-blind)
#377DE2
Tritanopia (blue-blind)
#927798
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5be5;
/* rgb */ color: rgb(159, 91, 229);
/* oklch */ color: oklch(61.3% 0.203 303.7);
Tailwind
colors: {
  custom: {
    50: '#c08dee',
    500: '#9f5be5',
    950: '#000000',
  },
}
SCSS
$custom: #9f5be5;
$custom-light: #c08dee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5be5",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 269.565,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61274,
    "c": 0.20325,
    "h": 303.7
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#9F5BE5
secondary
#CEE7B5
accent
#D51174
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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