#9D56EF#9D56EF

#9D56EF is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.221 H 301.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9D56EF
RGBrgb(157, 86, 239)
HSLhsl(268, 83%, 64%)
HSVhsv(268, 64%, 94%)
CMYKcmyk(34.3%, 64%, 0%, 6.3%)
CIE-LABlab(51.90, 58.07, -66.21)
CIE-LCHlch(51.90, 88.06, 311.25°)
OKLaboklab(61.06% 0.1151 -0.1882)
OKLCHoklch(61.06% 0.221 301.5)
XYZxyz(32.8087, 20.0555, 83.7872)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D56EF #A8EF56
analogous
#565BEF #9D56EF #E956EF
triadic
#9D56EF #EF9D56 #56EF9D
tetradic
#9D56EF #EF565B #A8EF56 #56EFE9
square
#9D56EF #EF565B #A8EF56 #56EFE9
split-complementary
#9D56EF #EFE956 #5BEF56
monochromatic
#5F12B9 #7D1EEA #9D56EF #BD8EF4 #DEC6FA

Accessibility & contrast

On white

4.19
#9D56EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#9D56EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D56EF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D56EF#FFFFFF#000000##000000
##9D56EF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#147BEC
Tritanopia (blue-blind)
#8C789B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d56ef;
/* rgb */ color: rgb(157, 86, 239);
/* oklch */ color: oklch(61.1% 0.221 301.5);
Tailwind
colors: {
  custom: {
    50: '#bf8af5',
    500: '#9d56ef',
    950: '#000000',
  },
}
SCSS
$custom: #9d56ef;
$custom-light: #bf8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d56ef",
  "rgb": {
    "r": 157,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 267.843,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61059,
    "c": 0.2206,
    "h": 301.5
  },
  "luminance": 0.20056
}

Semantic roles & 50–950 ramp

primary
#9D56EF
secondary
#D2EBB5
accent
#DF067B
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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