#9D56E7#9D56E7

#9D56E7 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.5% C 0.212 H 303.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9D56E7
RGBrgb(157, 86, 231)
HSLhsl(269, 75%, 62%)
HSVhsv(269, 63%, 91%)
CMYKcmyk(32%, 62.8%, 0%, 9.4%)
CIE-LABlab(51.37, 56.17, -62.56)
CIE-LCHlch(51.37, 84.08, 311.92°)
OKLaboklab(60.51% 0.1157 -0.1775)
OKLCHoklch(60.51% 0.212 303.1)
XYZxyz(31.6529, 19.5932, 77.7001)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56E7 #A0E756
analogous
#5658E7 #9D56E7 #E556E7
triadic
#9D56E7 #E79D56 #56E79D
tetradic
#9D56E7 #E75658 #A0E756 #56E7E5
square
#9D56E7 #E75658 #A0E756 #56E7E5
split-complementary
#9D56E7 #E7E556 #58E756
monochromatic
#6018AA #7E20DF #9D56E7 #BC8CEF #DBC1F6

Accessibility & contrast

On white

4.27
#9D56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9D56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56E7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56E7#FFFFFF#000000##000000
##9D56E71.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#297AE4
Tritanopia (blue-blind)
#8F7597
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d56e7;
/* rgb */ color: rgb(157, 86, 231);
/* oklch */ color: oklch(60.5% 0.212 303.1);
Tailwind
colors: {
  custom: {
    50: '#bf89ef',
    500: '#9d56e7',
    950: '#000000',
  },
}
SCSS
$custom: #9d56e7;
$custom-light: #bf89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56e7",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 269.379,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60513,
    "c": 0.21188,
    "h": 303.1
  },
  "luminance": 0.19593
}

Semantic roles & 50–950 ramp

primary
#9D56E7
secondary
#CDE7B2
accent
#D70E75
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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