#5D3FD8#5D3FD8

#5D3FD8 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.220 H 284.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5D3FD8
RGBrgb(93, 63, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(56.9%, 70.8%, 0%, 15.3%)
CIE-LABlab(39.31, 52.32, -73.95)
CIE-LCHlch(39.31, 90.59, 305.28°)
OKLaboklab(49.96% 0.0535 -0.2129)
OKLCHoklch(49.96% 0.22 284.1)
XYZxyz(18.6826, 10.8389, 66.0601)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FD8 #BAD83F
analogous
#3F6DD8 #5D3FD8 #AA3FD8
triadic
#5D3FD8 #D85D3F #3FD85D
tetradic
#5D3FD8 #D83F6D #BAD83F #3FD8AA
square
#5D3FD8 #D83F6D #BAD83F #3FD8AA
split-complementary
#5D3FD8 #D8AA3F #6DD83F
monochromatic
#2F1A82 #4125B5 #5D3FD8 #8872E2 #B3A5ED

Accessibility & contrast

On white

6.63
#5D3FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5D3FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3FD8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FD8#FFFFFF#000000##FFFFFF
##5D3FD81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#1B6887
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d3fd8;
/* rgb */ color: rgb(93, 63, 216);
/* oklch */ color: oklch(50.0% 0.220 284.1);
Tailwind
colors: {
  custom: {
    50: '#9777e5',
    500: '#5d3fd8',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fd8;
$custom-light: #9777e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fd8",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 251.765,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49964,
    "c": 0.21956,
    "h": 284.1
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#5D3FD8
secondary
#CDDA99
accent
#E93FC8
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D3FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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