#9D56C8#9D56C8

#9D56C8 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.5% C 0.178 H 310.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9D56C8
RGBrgb(157, 86, 200)
HSLhsl(277, 51%, 56%)
HSVhsv(277, 57%, 78%)
CMYKcmyk(21.5%, 57%, 0%, 21.6%)
CIE-LABlab(49.49, 49.04, -47.94)
CIE-LCHlch(49.49, 68.58, 315.65°)
OKLaboklab(58.54% 0.1163 -0.1346)
OKLCHoklch(58.54% 0.178 310.8)
XYZxyz(27.6558, 17.9944, 56.6488)
Luminance0.1799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56C8 #81C856
analogous
#6456C8 #9D56C8 #C856BA
triadic
#9D56C8 #C89D56 #56C89D
tetradic
#9D56C8 #C86456 #81C856 #56BAC8
square
#9D56C8 #C86456 #81C856 #56BAC8
split-complementary
#9D56C8 #BAC856 #56C864
monochromatic
#5C287B #7E37AA #9D56C8 #B884D7 #D3B2E6

Accessibility & contrast

On white

4.57
#9D56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#9D56C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56C8
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56C8#FFFFFF#000000##000000
##9D56C81.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#986A87
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d56c8;
/* rgb */ color: rgb(157, 86, 200);
/* oklch */ color: oklch(58.5% 0.178 310.8);
Tailwind
colors: {
  custom: {
    50: '#bd89d9',
    500: '#9d56c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d56c8;
$custom-light: #bd89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56c8",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 277.368,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58537,
    "c": 0.17787,
    "h": 310.8
  },
  "luminance": 0.17994
}

Semantic roles & 50–950 ramp

primary
#9D56C8
secondary
#B7D4A5
accent
#DA4D83
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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