#9D5FDA#9D5FDA

#9D5FDA is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.9% C 0.185 H 304.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9D5FDA
RGBrgb(157, 95, 218)
HSLhsl(270, 62%, 61%)
HSVhsv(270, 56%, 85%)
CMYKcmyk(28%, 56.4%, 0%, 14.5%)
CIE-LABlab(52.30, 48.46, -53.73)
CIE-LCHlch(52.30, 72.35, 312.05°)
OKLaboklab(60.93% 0.1053 -0.1516)
OKLCHoklch(60.93% 0.185 304.8)
XYZxyz(30.6490, 20.4146, 68.6418)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5FDA #9CDA5F
analogous
#605FDA #9D5FDA #DA5FDA
triadic
#9D5FDA #DA9D5F #5FDA9D
tetradic
#9D5FDA #DA605F #9CDA5F #5FDADA
square
#9D5FDA #DA605F #9CDA5F #5FDADA
split-complementary
#9D5FDA #DADA5F #5FDA60
monochromatic
#60249B #7F2FCD #9D5FDA #BB91E5 #DAC2F1

Accessibility & contrast

On white

4.13
#9D5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9D5FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5FDA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5FDA#FFFFFF#000000##000000
##9D5FDA1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7BDE
Deuteranopia (green-blind)
#477DD7
Tritanopia (blue-blind)
#927793
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5fda;
/* rgb */ color: rgb(157, 95, 218);
/* oklch */ color: oklch(60.9% 0.185 304.8);
Tailwind
colors: {
  custom: {
    50: '#bd8fe6',
    500: '#9d5fda',
    950: '#000000',
  },
}
SCSS
$custom: #9d5fda;
$custom-light: #bd8fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5fda",
  "rgb": {
    "r": 157,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 270.244,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60933,
    "c": 0.18454,
    "h": 304.8
  },
  "luminance": 0.20414
}

Semantic roles & 50–950 ramp

primary
#9D5FDA
secondary
#CAE1B3
accent
#CA1B72
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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