#9F5AE6#9F5AE6

#9F5AE6 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.206 H 303.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9F5AE6
RGBrgb(159, 90, 230)
HSLhsl(270, 74%, 63%)
HSVhsv(270, 61%, 90%)
CMYKcmyk(30.9%, 60.9%, 0%, 9.8%)
CIE-LABlab(52.28, 54.36, -60.52)
CIE-LCHlch(52.28, 81.35, 311.93°)
OKLaboklab(61.2% 0.1138 -0.1714)
OKLCHoklch(61.2% 0.206 303.6)
XYZxyz(32.2339, 20.3965, 77.0863)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AE6 #A1E65A
analogous
#5A5BE6 #9F5AE6 #E55AE6
triadic
#9F5AE6 #E69F5A #5AE69F
tetradic
#9F5AE6 #E65A5B #A1E65A #5AE6E5
square
#9F5AE6 #E65A5B #A1E65A #5AE6E5
split-complementary
#9F5AE6 #E6E55A #5BE65A
monochromatic
#621AAC #8025DE #9F5AE6 #BE8FEE #DDC4F6

Accessibility & contrast

On white

4.13
#9F5AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9F5AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AE6
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AE6#FFFFFF#000000##000000
##9F5AE61.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEA
Deuteranopia (green-blind)
#347DE3
Tritanopia (blue-blind)
#927798
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ae6;
/* rgb */ color: rgb(159, 90, 230);
/* oklch */ color: oklch(61.2% 0.206 303.6);
Tailwind
colors: {
  custom: {
    50: '#c08cef',
    500: '#9f5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ae6;
$custom-light: #c08cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ae6",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 269.571,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61202,
    "c": 0.20575,
    "h": 303.6
  },
  "luminance": 0.20396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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