#5D3CE7#5D3CE7

#5D3CE7 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.240 H 282.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5D3CE7
RGBrgb(93, 60, 231)
HSLhsl(252, 78%, 57%)
HSVhsv(252, 74%, 91%)
CMYKcmyk(59.7%, 74%, 0%, 9.4%)
CIE-LABlab(40.13, 58.17, -81.18)
CIE-LCHlch(40.13, 99.87, 305.63°)
OKLaboklab(50.96% 0.0524 -0.234)
OKLCHoklch(50.96% 0.24 282.6)
XYZxyz(20.5494, 11.3270, 76.6893)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CE7 #C6E73C
analogous
#3C71E7 #5D3CE7 #B33CE7
triadic
#5D3CE7 #E75D3C #3CE75D
tetradic
#5D3CE7 #E73C71 #C6E73C #3CE7B3
square
#5D3CE7 #E73C71 #C6E73C #3CE7B3
split-complementary
#5D3CE7 #E7B33C #71E73C
monochromatic
#2C1296 #3C19CD #5D3CE7 #8A72EE #B8A9F4

Accessibility & contrast

On white

6.43
#5D3CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5D3CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3CE7
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CE7#FFFFFF#000000##FFFFFF
##5D3CE71.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EC
Deuteranopia (green-blind)
#0059E4
Tritanopia (blue-blind)
#006C8F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5d3ce7;
/* rgb */ color: rgb(93, 60, 231);
/* oklch */ color: oklch(51.0% 0.240 282.6);
Tailwind
colors: {
  custom: {
    50: '#9a76f0',
    500: '#5d3ce7',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ce7;
$custom-light: #9a76f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ce7",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 231
  },
  "hsl": {
    "h": 251.579,
    "s": 78.082,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.23983,
    "h": 282.6
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#5D3CE7
secondary
#D5E29D
accent
#F533CF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5D3CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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