#9F5DEF#9F5DEF

#9F5DEF is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.2% C 0.212 H 301.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9F5DEF
RGBrgb(159, 93, 239)
HSLhsl(267, 82%, 65%)
HSVhsv(267, 61%, 94%)
CMYKcmyk(33.5%, 61.1%, 0%, 6.3%)
CIE-LABlab(53.42, 54.98, -63.74)
CIE-LCHlch(53.42, 84.18, 310.78°)
OKLaboklab(62.21% 0.1099 -0.1809)
OKLCHoklch(62.21% 0.212 301.3)
XYZxyz(33.7887, 21.4315, 84.0012)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DEF #ADEF5D
analogous
#5D64EF #9F5DEF #E85DEF
triadic
#9F5DEF #EF9F5D #5DEF9F
tetradic
#9F5DEF #EF5D64 #ADEF5D #5DEFE8
square
#9F5DEF #EF5D64 #ADEF5D #5DEFE8
split-complementary
#9F5DEF #EFE85D #64EF5D
monochromatic
#6113BF #7E25E9 #9F5DEF #C095F5 #E1CCFA

Accessibility & contrast

On white

3.97
#9F5DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#9F5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DEF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DEF#FFFFFF#000000##000000
##9F5DEF1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#2C7FEC
Tritanopia (blue-blind)
#8E7C9E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5def;
/* rgb */ color: rgb(159, 93, 239);
/* oklch */ color: oklch(62.2% 0.212 301.3);
Tailwind
colors: {
  custom: {
    50: '#c08ef5',
    500: '#9f5def',
    950: '#000000',
  },
}
SCSS
$custom: #9f5def;
$custom-light: #c08ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5def",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 267.123,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62208,
    "c": 0.21168,
    "h": 301.3
  },
  "luminance": 0.21432
}

Semantic roles & 50–950 ramp

primary
#9F5DEF
secondary
#D6EDBB
accent
#DE077D
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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