#9D57EC#9D57EC

#9D57EC is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.0% C 0.216 H 301.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9D57EC
RGBrgb(157, 87, 236)
HSLhsl(268, 80%, 63%)
HSVhsv(268, 63%, 93%)
CMYKcmyk(33.5%, 63.1%, 0%, 7.5%)
CIE-LABlab(51.88, 56.86, -64.55)
CIE-LCHlch(51.88, 86.02, 311.37°)
OKLaboklab(60.98% 0.1143 -0.1833)
OKLCHoklch(60.98% 0.216 301.9)
XYZxyz(32.4496, 20.0405, 81.4993)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D57EC #A6EC57
analogous
#575BEC #9D57EC #E757EC
triadic
#9D57EC #EC9D57 #57EC9D
tetradic
#9D57EC #EC575B #A6EC57 #57ECE7
square
#9D57EC #EC575B #A6EC57 #57ECE7
split-complementary
#9D57EC #ECE757 #5BEC57
monochromatic
#5F14B4 #7D20E6 #9D57EC #BD8EF2 #DDC5F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D57EC#FFFFFF#000000##000000
##9D57EC1.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)
#007BF1
Deuteranopia (green-blind)
#207BE9
Tritanopia (blue-blind)
#8D779A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d57ec;
/* rgb */ color: rgb(157, 87, 236);
/* oklch */ color: oklch(61.0% 0.216 301.9);
Tailwind
colors: {
  custom: {
    50: '#bf8af3',
    500: '#9d57ec',
    950: '#000000',
  },
}
SCSS
$custom: #9d57ec;
$custom-light: #bf8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d57ec",
  "rgb": {
    "r": 157,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 268.188,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60984,
    "c": 0.21602,
    "h": 301.9
  },
  "luminance": 0.20041
}

Semantic roles & 50–950 ramp

primary
#9D57EC
secondary
#D1EAB5
accent
#DC0A79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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