#9D57EB#9D57EB

#9D57EB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.9% C 0.215 H 302.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9D57EB
RGBrgb(157, 87, 235)
HSLhsl(268, 79%, 63%)
HSVhsv(268, 63%, 92%)
CMYKcmyk(33.2%, 63%, 0%, 7.8%)
CIE-LABlab(51.82, 56.62, -64.10)
CIE-LCHlch(51.82, 85.52, 311.46°)
OKLaboklab(60.92% 0.1143 -0.182)
OKLCHoklch(60.92% 0.215 302.1)
XYZxyz(32.3047, 19.9826, 80.7363)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D57EB #A5EB57
analogous
#575BEB #9D57EB #E757EB
triadic
#9D57EB #EB9D57 #57EB9D
tetradic
#9D57EB #EB575B #A5EB57 #57EBE7
square
#9D57EB #EB575B #A5EB57 #57EBE7
split-complementary
#9D57EB #EBE757 #5BEB57
monochromatic
#6015B2 #7D20E4 #9D57EB #BD8EF2 #DDC4F8

Accessibility & contrast

On white

4.20
#9D57EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9D57EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D57EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D57EB#FFFFFF#000000##000000
##9D57EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#237BE8
Tritanopia (blue-blind)
#8D7799
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d57eb;
/* rgb */ color: rgb(157, 87, 235);
/* oklch */ color: oklch(60.9% 0.215 302.1);
Tailwind
colors: {
  custom: {
    50: '#bf8af2',
    500: '#9d57eb',
    950: '#000000',
  },
}
SCSS
$custom: #9d57eb;
$custom-light: #bf8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d57eb",
  "rgb": {
    "r": 157,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 268.378,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60916,
    "c": 0.21492,
    "h": 302.1
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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