#9F5AE5#9F5AE5

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

Color values

HEX#9F5AE5
RGBrgb(159, 90, 229)
HSLhsl(270, 73%, 63%)
HSVhsv(270, 61%, 90%)
CMYKcmyk(30.6%, 60.7%, 0%, 10.2%)
CIE-LABlab(52.22, 54.12, -60.06)
CIE-LCHlch(52.22, 80.85, 312.02°)
OKLaboklab(61.14% 0.1138 -0.1701)
OKLCHoklch(61.14% 0.205 303.8)
XYZxyz(32.0939, 20.3405, 76.3489)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AE5 #A0E55A
analogous
#5A5BE5 #9F5AE5 #E45AE5
triadic
#9F5AE5 #E59F5A #5AE59F
tetradic
#9F5AE5 #E55A5B #A0E55A #5AE5E4
square
#9F5AE5 #E55A5B #A0E55A #5AE5E4
split-complementary
#9F5AE5 #E5E45A #5BE55A
monochromatic
#621BAA #8025DD #9F5AE5 #BE8FED #DDC4F6

Accessibility & contrast

On white

4.14
#9F5AE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9F5AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AE5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AE5#FFFFFF#000000##000000
##9F5AE51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BE9
Deuteranopia (green-blind)
#367CE2
Tritanopia (blue-blind)
#927797
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ae5;
/* rgb */ color: rgb(159, 90, 229);
/* oklch */ color: oklch(61.1% 0.205 303.8);
Tailwind
colors: {
  custom: {
    50: '#c08cee',
    500: '#9f5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ae5;
$custom-light: #c08cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ae5",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 269.784,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61136,
    "c": 0.20464,
    "h": 303.8
  },
  "luminance": 0.2034
}

Semantic roles & 50–950 ramp

primary
#9F5AE5
secondary
#CEE7B4
accent
#D51173
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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