#9F5AE7#9F5AE7

#9F5AE7 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.207 H 303.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9F5AE7
RGBrgb(159, 90, 231)
HSLhsl(269, 75%, 63%)
HSVhsv(269, 61%, 91%)
CMYKcmyk(31.2%, 61%, 0%, 9.4%)
CIE-LABlab(52.35, 54.60, -60.99)
CIE-LCHlch(52.35, 81.85, 311.84°)
OKLaboklab(61.27% 0.1137 -0.1728)
OKLCHoklch(61.27% 0.207 303.4)
XYZxyz(32.3748, 20.4528, 77.8280)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AE7 #A2E75A
analogous
#5A5BE7 #9F5AE7 #E65AE7
triadic
#9F5AE7 #E79F5A #5AE79F
tetradic
#9F5AE7 #E75A5B #A2E75A #5AE7E6
square
#9F5AE7 #E75A5B #A2E75A #5AE7E6
split-complementary
#9F5AE7 #E7E65A #5BE75A
monochromatic
#6219AD #8025DF #9F5AE7 #BE8FEF #DDC5F7

Accessibility & contrast

On white

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

On black

5.09
#9F5AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AE7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AE7#FFFFFF#000000##000000
##9F5AE71.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#337DE4
Tritanopia (blue-blind)
#917798
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ae7;
/* rgb */ color: rgb(159, 90, 231);
/* oklch */ color: oklch(61.3% 0.207 303.4);
Tailwind
colors: {
  custom: {
    50: '#c08cef',
    500: '#9f5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ae7;
$custom-light: #c08cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ae7",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 269.362,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61267,
    "c": 0.20687,
    "h": 303.4
  },
  "luminance": 0.20453
}

Semantic roles & 50–950 ramp

primary
#9F5AE7
secondary
#CFE8B5
accent
#D70F75
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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