#9F5AEF#9F5AEF

#9F5AEF is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.8% C 0.216 H 301.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9F5AEF
RGBrgb(159, 90, 239)
HSLhsl(268, 82%, 65%)
HSVhsv(268, 62%, 94%)
CMYKcmyk(33.5%, 62.3%, 0%, 6.3%)
CIE-LABlab(52.86, 56.50, -64.65)
CIE-LCHlch(52.86, 85.86, 311.15°)
OKLaboklab(61.8% 0.1133 -0.1835)
OKLCHoklch(61.8% 0.216 301.7)
XYZxyz(33.5305, 20.9151, 83.9151)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AEF #AAEF5A
analogous
#5A60EF #9F5AEF #E95AEF
triadic
#9F5AEF #EF9F5A #5AEF9F
tetradic
#9F5AEF #EF5A60 #AAEF5A #5AEFE9
square
#9F5AEF #EF5A60 #AAEF5A #5AEFE9
split-complementary
#9F5AEF #EFE95A #60EF5A
monochromatic
#6112BC #7F22EA #9F5AEF #BF92F4 #E0CAFA

Accessibility & contrast

On white

4.05
#9F5AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9F5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AEF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AEF#FFFFFF#000000##000000
##9F5AEF1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#257DEC
Tritanopia (blue-blind)
#8F7A9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5aef;
/* rgb */ color: rgb(159, 90, 239);
/* oklch */ color: oklch(61.8% 0.216 301.7);
Tailwind
colors: {
  custom: {
    50: '#c08cf5',
    500: '#9f5aef',
    950: '#000000',
  },
}
SCSS
$custom: #9f5aef;
$custom-light: #c08cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5aef",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 267.785,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61801,
    "c": 0.21571,
    "h": 301.7
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#9F5AEF
secondary
#D4ECB9
accent
#DF077B
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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