#9D5DF2#9D5DF2

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

Color values

HEX#9D5DF2
RGBrgb(157, 93, 242)
HSLhsl(266, 85%, 66%)
HSVhsv(266, 62%, 95%)
CMYKcmyk(35.1%, 61.6%, 0%, 5.1%)
CIE-LABlab(53.39, 55.28, -65.47)
CIE-LCHlch(53.39, 85.69, 310.18°)
OKLaboklab(62.2% 0.1072 -0.186)
OKLCHoklch(62.2% 0.215 299.9)
XYZxyz(33.8421, 21.4073, 86.3363)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DF2 #B2F25D
analogous
#5D67F2 #9D5DF2 #E85DF2
triadic
#9D5DF2 #F29D5D #5DF29D
tetradic
#9D5DF2 #F25D67 #B2F25D #5DF2E8
square
#9D5DF2 #F25D67 #B2F25D #5DF2E8
split-complementary
#9D5DF2 #F2E85D #67F25D
monochromatic
#5E10C5 #7B24ED #9D5DF2 #BF96F7 #E2CEFB

Accessibility & contrast

On white

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

On black

5.28
#9D5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DF2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DF2#FFFFFF#000000##000000
##9D5DF21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#227EEF
Tritanopia (blue-blind)
#8B7D9F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9d5df2;
/* rgb */ color: rgb(157, 93, 242);
/* oklch */ color: oklch(62.2% 0.215 299.9);
Tailwind
colors: {
  custom: {
    50: '#bf8ef7',
    500: '#9d5df2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5df2;
$custom-light: #bf8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5df2",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 265.772,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62202,
    "c": 0.21471,
    "h": 299.9
  },
  "luminance": 0.21408
}

Semantic roles & 50–950 ramp

primary
#9D5DF2
secondary
#D9EEBD
accent
#E20482
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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