#9D56CD#9D56CD

#9D56CD is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.8% C 0.183 H 309.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9D56CD
RGBrgb(157, 86, 205)
HSLhsl(276, 54%, 57%)
HSVhsv(276, 58%, 80%)
CMYKcmyk(23.4%, 58%, 0%, 19.6%)
CIE-LABlab(49.78, 50.16, -50.36)
CIE-LCHlch(49.78, 71.08, 314.89°)
OKLaboklab(58.84% 0.1164 -0.1417)
OKLCHoklch(58.84% 0.183 309.4)
XYZxyz(28.2497, 18.2319, 59.7767)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56CD #86CD56
analogous
#6156CD #9D56CD #CD56C2
triadic
#9D56CD #CD9D56 #56CD9D
tetradic
#9D56CD #CD6156 #86CD56 #56C2CD
square
#9D56CD #CD6156 #86CD56 #56C2CD
split-complementary
#9D56CD #C2CD56 #56CD61
monochromatic
#5D2682 #7F34B1 #9D56CD #B885DB #D4B4E9

Accessibility & contrast

On white

4.52
#9D56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#9D56CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56CD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56CD#FFFFFF#000000##000000
##9D56CD1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D1
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#966C89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d56cd;
/* rgb */ color: rgb(157, 86, 205);
/* oklch */ color: oklch(58.8% 0.183 309.4);
Tailwind
colors: {
  custom: {
    50: '#bd89dd',
    500: '#9d56cd',
    950: '#000000',
  },
}
SCSS
$custom: #9d56cd;
$custom-light: #bd89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56cd",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 275.798,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58839,
    "c": 0.18335,
    "h": 309.4
  },
  "luminance": 0.18231
}

Semantic roles & 50–950 ramp

primary
#9D56CD
secondary
#BBD8A7
accent
#DE4A86
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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