#9F5AED#9F5AED

#9F5AED is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.7% C 0.213 H 302.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9F5AED
RGBrgb(159, 90, 237)
HSLhsl(268, 80%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(32.9%, 62%, 0%, 7.1%)
CIE-LABlab(52.73, 56.02, -63.74)
CIE-LCHlch(52.73, 84.86, 311.31°)
OKLaboklab(61.67% 0.1134 -0.1809)
OKLCHoklch(61.67% 0.214 302.1)
XYZxyz(33.2367, 20.7976, 82.3677)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AED #A8ED5A
analogous
#5A5FED #9F5AED #E85AED
triadic
#9F5AED #ED9F5A #5AED9F
tetradic
#9F5AED #ED5A5F #A8ED5A #5AEDE8
square
#9F5AED #ED5A5F #A8ED5A #5AEDE8
split-complementary
#9F5AED #EDE85A #5FED5A
monochromatic
#6114B8 #7F23E7 #9F5AED #BF91F3 #DFC8F9

Accessibility & contrast

On white

4.07
#9F5AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9F5AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AED
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AED#FFFFFF#000000##000000
##9F5AED1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#297DEA
Tritanopia (blue-blind)
#8F7A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5aed;
/* rgb */ color: rgb(159, 90, 237);
/* oklch */ color: oklch(61.7% 0.213 302.1);
Tailwind
colors: {
  custom: {
    50: '#c08cf4',
    500: '#9f5aed',
    950: '#000000',
  },
}
SCSS
$custom: #9f5aed;
$custom-light: #c08cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5aed",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 237
  },
  "hsl": {
    "h": 268.163,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61666,
    "c": 0.2135,
    "h": 302.1
  },
  "luminance": 0.20798
}

Semantic roles & 50–950 ramp

primary
#9F5AED
secondary
#D3EBB8
accent
#DD0979
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AED

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

Preview Lab → · Contrast checker → · Palette generator →

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