#9D58EC#9D58EC

#9D58EC is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.215 H 301.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9D58EC
RGBrgb(157, 88, 236)
HSLhsl(268, 80%, 64%)
HSVhsv(268, 63%, 93%)
CMYKcmyk(33.5%, 62.7%, 0%, 7.5%)
CIE-LABlab(52.07, 56.36, -64.25)
CIE-LCHlch(52.07, 85.47, 311.25°)
OKLaboklab(61.12% 0.1132 -0.1824)
OKLCHoklch(61.12% 0.215 301.8)
XYZxyz(32.5311, 20.2036, 81.5264)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D58EC #A7EC58
analogous
#585DEC #9D58EC #E758EC
triadic
#9D58EC #EC9D58 #58EC9D
tetradic
#9D58EC #EC585D #A7EC58 #58ECE7
square
#9D58EC #EC585D #A7EC58 #58ECE7
split-complementary
#9D58EC #ECE758 #5DEC58
monochromatic
#5F15B5 #7D21E6 #9D58EC #BD8FF2 #DDC6F9

Accessibility & contrast

On white

4.17
#9D58EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9D58EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D58EC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D58EC#FFFFFF#000000##000000
##9D58EC1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#237CE9
Tritanopia (blue-blind)
#8D789A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d58ec;
/* rgb */ color: rgb(157, 88, 236);
/* oklch */ color: oklch(61.1% 0.215 301.8);
Tailwind
colors: {
  custom: {
    50: '#bf8bf3',
    500: '#9d58ec',
    950: '#000000',
  },
}
SCSS
$custom: #9d58ec;
$custom-light: #bf8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d58ec",
  "rgb": {
    "r": 157,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 267.973,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61117,
    "c": 0.21469,
    "h": 301.8
  },
  "luminance": 0.20204
}

Semantic roles & 50–950 ramp

primary
#9D58EC
secondary
#D2EAB6
accent
#DC0A7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D58EC

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

Preview Lab → · Contrast checker → · Palette generator →

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