#9D56E6#9D56E6

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

Color values

HEX#9D56E6
RGBrgb(157, 86, 230)
HSLhsl(270, 74%, 62%)
HSVhsv(270, 63%, 90%)
CMYKcmyk(31.7%, 62.6%, 0%, 9.8%)
CIE-LABlab(51.31, 55.93, -62.10)
CIE-LCHlch(51.31, 83.58, 312.01°)
OKLaboklab(60.45% 0.1158 -0.1761)
OKLCHoklch(60.45% 0.211 303.3)
XYZxyz(31.5121, 19.5369, 76.9584)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56E6 #9FE656
analogous
#5657E6 #9D56E6 #E556E6
triadic
#9D56E6 #E69D56 #56E69D
tetradic
#9D56E6 #E65657 #9FE656 #56E6E5
square
#9D56E6 #E65657 #9FE656 #56E6E5
split-complementary
#9D56E6 #E6E556 #57E656
monochromatic
#6019A9 #7E21DE #9D56E6 #BC8BEE #DBC1F6

Accessibility & contrast

On white

4.28
#9D56E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#9D56E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56E6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56E6#FFFFFF#000000##000000
##9D56E61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#2A7AE3
Tritanopia (blue-blind)
#8F7596
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d56e6;
/* rgb */ color: rgb(157, 86, 230);
/* oklch */ color: oklch(60.4% 0.211 303.3);
Tailwind
colors: {
  custom: {
    50: '#bf89ef',
    500: '#9d56e6',
    950: '#000000',
  },
}
SCSS
$custom: #9d56e6;
$custom-light: #bf89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56e6",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 230
  },
  "hsl": {
    "h": 269.583,
    "s": 74.227,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60445,
    "c": 0.21078,
    "h": 303.3
  },
  "luminance": 0.19537
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D56E6

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

Preview Lab → · Contrast checker → · Palette generator →

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