#9F5DEE#9F5DEE

#9F5DEE is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.1% C 0.211 H 301.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9F5DEE
RGBrgb(159, 93, 238)
HSLhsl(267, 81%, 65%)
HSVhsv(267, 61%, 93%)
CMYKcmyk(33.2%, 60.9%, 0%, 6.7%)
CIE-LABlab(53.35, 54.74, -63.29)
CIE-LCHlch(53.35, 83.68, 310.86°)
OKLaboklab(62.14% 0.11 -0.1795)
OKLCHoklch(62.14% 0.211 301.5)
XYZxyz(33.6414, 21.3725, 83.2253)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DEE #ACEE5D
analogous
#5D64EE #9F5DEE #E75DEE
triadic
#9F5DEE #EE9F5D #5DEE9F
tetradic
#9F5DEE #EE5D64 #ACEE5D #5DEEE7
square
#9F5DEE #EE5D64 #ACEE5D #5DEEE7
split-complementary
#9F5DEE #EEE75D #64EE5D
monochromatic
#6114BD #7E26E8 #9F5DEE #C094F4 #E1CCFA

Accessibility & contrast

On white

3.98
#9F5DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#9F5DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DEE
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DEE#FFFFFF#000000##000000
##9F5DEE1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF3
Deuteranopia (green-blind)
#2D7FEB
Tritanopia (blue-blind)
#8F7C9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5dee;
/* rgb */ color: rgb(159, 93, 238);
/* oklch */ color: oklch(62.1% 0.211 301.5);
Tailwind
colors: {
  custom: {
    50: '#c08ef4',
    500: '#9f5dee',
    950: '#000000',
  },
}
SCSS
$custom: #9f5dee;
$custom-light: #c08ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5dee",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 267.31,
    "s": 81.006,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62142,
    "c": 0.21055,
    "h": 301.5
  },
  "luminance": 0.21373
}

Semantic roles & 50–950 ramp

primary
#9F5DEE
secondary
#D6ECBB
accent
#DD087C
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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