#9F5AEB#9F5AEB

#9F5AEB is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.5% C 0.211 H 302.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9F5AEB
RGBrgb(159, 90, 235)
HSLhsl(269, 78%, 64%)
HSVhsv(269, 62%, 92%)
CMYKcmyk(32.3%, 61.7%, 0%, 7.8%)
CIE-LABlab(52.60, 55.55, -62.82)
CIE-LCHlch(52.60, 83.86, 311.48°)
OKLaboklab(61.53% 0.1136 -0.1782)
OKLCHoklch(61.53% 0.211 302.5)
XYZxyz(32.9462, 20.6814, 80.8374)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AEB #A6EB5A
analogous
#5A5DEB #9F5AEB #E85AEB
triadic
#9F5AEB #EB9F5A #5AEB9F
tetradic
#9F5AEB #EB5A5D #A6EB5A #5AEBE8
square
#9F5AEB #EB5A5D #A6EB5A #5AEBE8
split-complementary
#9F5AEB #EBE85A #5DEB5A
monochromatic
#6116B5 #7F23E4 #9F5AEB #BF91F2 #DFC7F8

Accessibility & contrast

On white

4.09
#9F5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9F5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AEB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AEB#FFFFFF#000000##000000
##9F5AEB1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#2D7DE8
Tritanopia (blue-blind)
#90799A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5aeb;
/* rgb */ color: rgb(159, 90, 235);
/* oklch */ color: oklch(61.5% 0.211 302.5);
Tailwind
colors: {
  custom: {
    50: '#c08cf2',
    500: '#9f5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5aeb;
$custom-light: #c08cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5aeb",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 268.552,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61532,
    "c": 0.21129,
    "h": 302.5
  },
  "luminance": 0.20681
}

Semantic roles & 50–950 ramp

primary
#9F5AEB
secondary
#D2EAB7
accent
#DB0B78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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