#9D56ED#9D56ED

#9D56ED is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.218 H 301.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9D56ED
RGBrgb(157, 86, 237)
HSLhsl(268, 81%, 63%)
HSVhsv(268, 64%, 93%)
CMYKcmyk(33.8%, 63.7%, 0%, 7.1%)
CIE-LABlab(51.77, 57.59, -65.30)
CIE-LCHlch(51.77, 87.07, 311.41°)
OKLaboklab(60.92% 0.1153 -0.1855)
OKLCHoklch(60.92% 0.218 301.9)
XYZxyz(32.5149, 19.9380, 82.2398)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56ED #A6ED56
analogous
#565AED #9D56ED #E956ED
triadic
#9D56ED #ED9D56 #56ED9D
tetradic
#9D56ED #ED565A #A6ED56 #56EDE9
square
#9D56ED #ED565A #A6ED56 #56EDE9
split-complementary
#9D56ED #EDE956 #5AED56
monochromatic
#5F13B5 #7D1FE7 #9D56ED #BD8DF3 #DDC5F9

Accessibility & contrast

On white

4.21
#9D56ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9D56ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56ED
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56ED#FFFFFF#000000##000000
##9D56ED1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF2
Deuteranopia (green-blind)
#1B7BEA
Tritanopia (blue-blind)
#8D779A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d56ed;
/* rgb */ color: rgb(157, 86, 237);
/* oklch */ color: oklch(60.9% 0.218 301.9);
Tailwind
colors: {
  custom: {
    50: '#bf8af4',
    500: '#9d56ed',
    950: '#000000',
  },
}
SCSS
$custom: #9d56ed;
$custom-light: #bf8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56ed",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 268.212,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60921,
    "c": 0.21842,
    "h": 301.9
  },
  "luminance": 0.19938
}

Semantic roles & 50–950 ramp

primary
#9D56ED
secondary
#D1EAB4
accent
#DD0879
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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