#9D56E5#9D56E5

#9D56E5 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.4% C 0.210 H 303.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9D56E5
RGBrgb(157, 86, 229)
HSLhsl(270, 73%, 62%)
HSVhsv(270, 62%, 90%)
CMYKcmyk(31.4%, 62.4%, 0%, 10.2%)
CIE-LABlab(51.25, 55.70, -61.64)
CIE-LCHlch(51.25, 83.08, 312.10°)
OKLaboklab(60.38% 0.1159 -0.1748)
OKLCHoklch(60.38% 0.21 303.5)
XYZxyz(31.3721, 19.4809, 76.2210)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56E5 #9EE556
analogous
#5657E5 #9D56E5 #E456E5
triadic
#9D56E5 #E59D56 #56E59D
tetradic
#9D56E5 #E55657 #9EE556 #56E5E4
square
#9D56E5 #E55657 #9EE556 #56E5E4
split-complementary
#9D56E5 #E5E456 #57E556
monochromatic
#601AA7 #7E22DC #9D56E5 #BC8BED #DBC0F5

Accessibility & contrast

On white

4.29
#9D56E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9D56E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56E5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56E5#FFFFFF#000000##000000
##9D56E51.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#2C7AE2
Tritanopia (blue-blind)
#8F7496
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d56e5;
/* rgb */ color: rgb(157, 86, 229);
/* oklch */ color: oklch(60.4% 0.210 303.5);
Tailwind
colors: {
  custom: {
    50: '#be89ee',
    500: '#9d56e5',
    950: '#000000',
  },
}
SCSS
$custom: #9d56e5;
$custom-light: #be89ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56e5",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 269.79,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60378,
    "c": 0.20969,
    "h": 303.5
  },
  "luminance": 0.19481
}

Semantic roles & 50–950 ramp

primary
#9D56E5
secondary
#CCE6B1
accent
#D51073
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D56E5

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

Preview Lab → · Contrast checker → · Palette generator →

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