#9F5DF2#9F5DF2

#9F5DF2 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.4% C 0.215 H 300.7°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9F5DF2
RGBrgb(159, 93, 242)
HSLhsl(267, 85%, 66%)
HSVhsv(267, 62%, 95%)
CMYKcmyk(34.3%, 61.6%, 0%, 5.1%)
CIE-LABlab(53.61, 55.71, -65.11)
CIE-LCHlch(53.61, 85.69, 310.55°)
OKLaboklab(62.41% 0.1098 -0.1849)
OKLCHoklch(62.41% 0.215 300.7)
XYZxyz(34.2356, 21.6102, 86.3547)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DF2 #B0F25D
analogous
#5D65F2 #9F5DF2 #E95DF2
triadic
#9F5DF2 #F29F5D #5DF29F
tetradic
#9F5DF2 #F25D65 #B0F25D #5DF2E9
square
#9F5DF2 #F25D65 #B0F25D #5DF2E9
split-complementary
#9F5DF2 #F2E95D #65F25D
monochromatic
#6010C5 #7D24ED #9F5DF2 #C196F7 #E2CEFB

Accessibility & contrast

On white

3.95
#9F5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#9F5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DF2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DF2#FFFFFF#000000##000000
##9F5DF21.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#267FEF
Tritanopia (blue-blind)
#8D7D9F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5df2;
/* rgb */ color: rgb(159, 93, 242);
/* oklch */ color: oklch(62.4% 0.215 300.7);
Tailwind
colors: {
  custom: {
    50: '#c08ef7',
    500: '#9f5df2',
    950: '#000000',
  },
}
SCSS
$custom: #9f5df2;
$custom-light: #c08ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5df2",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 266.577,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62409,
    "c": 0.21503,
    "h": 300.7
  },
  "luminance": 0.2161
}

Semantic roles & 50–950 ramp

primary
#9F5DF2
secondary
#D8EEBD
accent
#E2047F
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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