#9F5AE9#9F5AE9

#9F5AE9 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.4% C 0.209 H 302.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9F5AE9
RGBrgb(159, 90, 233)
HSLhsl(269, 76%, 63%)
HSVhsv(269, 61%, 91%)
CMYKcmyk(31.8%, 61.4%, 0%, 8.6%)
CIE-LABlab(52.47, 55.07, -61.91)
CIE-LCHlch(52.47, 82.86, 311.65°)
OKLaboklab(61.4% 0.1137 -0.1755)
OKLCHoklch(61.4% 0.209 302.9)
XYZxyz(32.6588, 20.5665, 79.3242)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AE9 #A4E95A
analogous
#5A5CE9 #9F5AE9 #E75AE9
triadic
#9F5AE9 #E99F5A #5AE99F
tetradic
#9F5AE9 #E95A5C #A4E95A #5AE9E7
square
#9F5AE9 #E95A5C #A4E95A #5AE9E7
split-complementary
#9F5AE9 #E9E75A #5CE95A
monochromatic
#6218B1 #8024E2 #9F5AE9 #BE90F0 #DEC6F7

Accessibility & contrast

On white

4.11
#9F5AE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9F5AE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AE9
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AE9#FFFFFF#000000##000000
##9F5AE91.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEE
Deuteranopia (green-blind)
#307DE6
Tritanopia (blue-blind)
#917899
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ae9;
/* rgb */ color: rgb(159, 90, 233);
/* oklch */ color: oklch(61.4% 0.209 302.9);
Tailwind
colors: {
  custom: {
    50: '#c08cf1',
    500: '#9f5ae9',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ae9;
$custom-light: #c08cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ae9",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 233
  },
  "hsl": {
    "h": 268.951,
    "s": 76.471,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61399,
    "c": 0.20908,
    "h": 302.9
  },
  "luminance": 0.20566
}

Semantic roles & 50–950 ramp

primary
#9F5AE9
secondary
#D0E9B6
accent
#D90D76
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AE9

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

Preview Lab → · Contrast checker → · Palette generator →

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