#9F5AEE#9F5AEE

#9F5AEE is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.215 H 301.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9F5AEE
RGBrgb(159, 90, 238)
HSLhsl(268, 81%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(33.2%, 62.2%, 0%, 6.7%)
CIE-LABlab(52.79, 56.26, -64.19)
CIE-LCHlch(52.79, 85.36, 311.23°)
OKLaboklab(61.73% 0.1134 -0.1822)
OKLCHoklch(61.73% 0.215 301.9)
XYZxyz(33.3832, 20.8562, 83.1393)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AEE #A9EE5A
analogous
#5A5FEE #9F5AEE #E95AEE
triadic
#9F5AEE #EE9F5A #5AEE9F
tetradic
#9F5AEE #EE5A5F #A9EE5A #5AEEE9
square
#9F5AEE #EE5A5F #A9EE5A #5AEEE9
split-complementary
#9F5AEE #EEE95A #5FEE5A
monochromatic
#6113BA #7F23E8 #9F5AEE #BF91F4 #E0C9F9

Accessibility & contrast

On white

4.06
#9F5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9F5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AEE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AEE#FFFFFF#000000##000000
##9F5AEE1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#277DEB
Tritanopia (blue-blind)
#8F7A9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5aee;
/* rgb */ color: rgb(159, 90, 238);
/* oklch */ color: oklch(61.7% 0.215 301.9);
Tailwind
colors: {
  custom: {
    50: '#c08cf4',
    500: '#9f5aee',
    950: '#000000',
  },
}
SCSS
$custom: #9f5aee;
$custom-light: #c08cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5aee",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 267.973,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61733,
    "c": 0.2146,
    "h": 301.9
  },
  "luminance": 0.20856
}

Semantic roles & 50–950 ramp

primary
#9F5AEE
secondary
#D4ECB8
accent
#DE087A
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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