#9D56CC#9D56CC

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

Color values

HEX#9D56CC
RGBrgb(157, 86, 204)
HSLhsl(276, 54%, 57%)
HSVhsv(276, 58%, 80%)
CMYKcmyk(23%, 57.8%, 0%, 20%)
CIE-LABlab(49.72, 49.94, -49.88)
CIE-LCHlch(49.72, 70.58, 315.03°)
OKLaboklab(58.78% 0.1164 -0.1403)
OKLCHoklch(58.78% 0.182 309.7)
XYZxyz(28.1294, 18.1838, 59.1430)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56CC #85CC56
analogous
#6256CC #9D56CC #CC56C0
triadic
#9D56CC #CC9D56 #56CC9D
tetradic
#9D56CC #CC6256 #85CC56 #56C0CC
square
#9D56CC #CC6256 #85CC56 #56C0CC
split-complementary
#9D56CC #C0CC56 #56CC62
monochromatic
#5D2781 #7F35B0 #9D56CC #B885DA #D4B4E8

Accessibility & contrast

On white

4.53
#9D56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9D56CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56CC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56CC#FFFFFF#000000##000000
##9D56CC1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#4977C9
Tritanopia (blue-blind)
#976C89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d56cc;
/* rgb */ color: rgb(157, 86, 204);
/* oklch */ color: oklch(58.8% 0.182 309.7);
Tailwind
colors: {
  custom: {
    50: '#bd89dc',
    500: '#9d56cc',
    950: '#000000',
  },
}
SCSS
$custom: #9d56cc;
$custom-light: #bd89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56cc",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 276.102,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58778,
    "c": 0.18225,
    "h": 309.7
  },
  "luminance": 0.18183
}

Semantic roles & 50–950 ramp

primary
#9D56CC
secondary
#BAD7A7
accent
#DD4B85
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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