#5D2EC9#5D2EC9

#5D2EC9 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.220 H 288.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5D2EC9
RGBrgb(93, 46, 201)
HSLhsl(258, 63%, 48%)
HSVhsv(258, 77%, 79%)
CMYKcmyk(53.7%, 77.1%, 0%, 21.2%)
CIE-LABlab(35.00, 56.43, -72.35)
CIE-LCHlch(35.00, 91.76, 307.95°)
OKLaboklab(46.51% 0.0697 -0.2081)
OKLCHoklch(46.51% 0.22 288.5)
XYZxyz(16.0307, 8.4974, 56.0425)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EC9 #9AC92E
analogous
#2E4CC9 #5D2EC9 #AA2EC9
triadic
#5D2EC9 #C95D2E #2EC95D
tetradic
#5D2EC9 #C92E4C #9AC92E #2EC9AA
square
#5D2EC9 #C92E4C #9AC92E #2EC9AA
split-complementary
#5D2EC9 #C9AA2E #4CC92E
monochromatic
#2F1765 #462397 #5D2EC9 #815BD9 #A78DE5

Accessibility & contrast

On white

7.78
#5D2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EC9
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EC9#FFFFFF#000000##FFFFFF
##5D2EC91.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004EC6
Tritanopia (blue-blind)
#315A7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d2ec9;
/* rgb */ color: rgb(93, 46, 201);
/* oklch */ color: oklch(46.5% 0.220 288.5);
Tailwind
colors: {
  custom: {
    50: '#966ddb',
    500: '#5d2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ec9;
$custom-light: #966ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ec9",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 258.194,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46512,
    "c": 0.2195,
    "h": 288.5
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#5D2EC9
secondary
#B8CF84
accent
#E642B4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5D2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

#5D2EC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva