#9F5DEB#9F5DEB

#9F5DEB is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.207 H 302.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9F5DEB
RGBrgb(159, 93, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 60%, 92%)
CMYKcmyk(32.3%, 60.4%, 0%, 7.8%)
CIE-LABlab(53.17, 54.02, -61.91)
CIE-LCHlch(53.17, 82.17, 311.11°)
OKLaboklab(61.94% 0.1101 -0.1755)
OKLCHoklch(61.94% 0.207 302.1)
XYZxyz(33.2043, 21.1977, 80.9234)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DEB #A9EB5D
analogous
#5D62EB #9F5DEB #E65DEB
triadic
#9F5DEB #EB9F5D #5DEB9F
tetradic
#9F5DEB #EB5D62 #A9EB5D #5DEBE6
square
#9F5DEB #EB5D62 #A9EB5D #5DEBE6
split-complementary
#9F5DEB #EBE65D #62EB5D
monochromatic
#6117B7 #7F27E4 #9F5DEB #BF93F2 #E0CAF8

Accessibility & contrast

On white

4.01
#9F5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9F5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DEB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DEB#FFFFFF#000000##000000
##9F5DEB1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#327EE8
Tritanopia (blue-blind)
#907B9B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5deb;
/* rgb */ color: rgb(159, 93, 235);
/* oklch */ color: oklch(61.9% 0.207 302.1);
Tailwind
colors: {
  custom: {
    50: '#c08ef2',
    500: '#9f5deb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5deb;
$custom-light: #c08ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5deb",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 267.887,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61944,
    "c": 0.20719,
    "h": 302.1
  },
  "luminance": 0.21198
}

Semantic roles & 50–950 ramp

primary
#9F5DEB
secondary
#D4EBB9
accent
#DA0B7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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