#9D56EB#9D56EB

#9D56EB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.216 H 302.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9D56EB
RGBrgb(157, 86, 235)
HSLhsl(269, 79%, 63%)
HSVhsv(269, 63%, 92%)
CMYKcmyk(33.2%, 63.4%, 0%, 7.8%)
CIE-LABlab(51.64, 57.12, -64.39)
CIE-LCHlch(51.64, 86.07, 311.57°)
OKLaboklab(60.78% 0.1155 -0.1828)
OKLCHoklch(60.78% 0.216 302.3)
XYZxyz(32.2243, 19.8218, 80.7095)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56EB #A4EB56
analogous
#5659EB #9D56EB #E856EB
triadic
#9D56EB #EB9D56 #56EB9D
tetradic
#9D56EB #EB5659 #A4EB56 #56EBE8
square
#9D56EB #EB5659 #A4EB56 #56EBE8
split-complementary
#9D56EB #EBE856 #59EB56
monochromatic
#6015B2 #7D1FE5 #9D56EB #BD8DF1 #DCC3F8

Accessibility & contrast

On white

4.23
#9D56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9D56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56EB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56EB#FFFFFF#000000##000000
##9D56EB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#207BE8
Tritanopia (blue-blind)
#8D7699
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d56eb;
/* rgb */ color: rgb(157, 86, 235);
/* oklch */ color: oklch(60.8% 0.216 302.3);
Tailwind
colors: {
  custom: {
    50: '#bf89f2',
    500: '#9d56eb',
    950: '#000000',
  },
}
SCSS
$custom: #9d56eb;
$custom-light: #bf89f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56eb",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 268.591,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60784,
    "c": 0.21624,
    "h": 302.3
  },
  "luminance": 0.19822
}

Semantic roles & 50–950 ramp

primary
#9D56EB
secondary
#D0E9B4
accent
#DB0A78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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