#5D3FD9#5D3FD9

#5D3FD9 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.1% C 0.221 H 284.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5D3FD9
RGBrgb(93, 63, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(57.1%, 71%, 0%, 14.9%)
CIE-LABlab(39.40, 52.61, -74.38)
CIE-LCHlch(39.40, 91.11, 305.27°)
OKLaboklab(50.05% 0.0533 -0.2142)
OKLCHoklch(50.05% 0.221 284)
XYZxyz(18.8123, 10.8907, 66.7430)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FD9 #BBD93F
analogous
#3F6ED9 #5D3FD9 #AA3FD9
triadic
#5D3FD9 #D95D3F #3FD95D
tetradic
#5D3FD9 #D93F6E #BBD93F #3FD9AA
square
#5D3FD9 #D93F6E #BBD93F #3FD9AA
split-complementary
#5D3FD9 #D9AA3F #6ED93F
monochromatic
#2F1A84 #4124B7 #5D3FD9 #8872E3 #B3A5ED

Accessibility & contrast

On white

6.61
#5D3FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5D3FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3FD9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FD9#FFFFFF#000000##FFFFFF
##5D3FD91.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#196988
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d3fd9;
/* rgb */ color: rgb(93, 63, 217);
/* oklch */ color: oklch(50.1% 0.221 284.0);
Tailwind
colors: {
  custom: {
    50: '#9877e6',
    500: '#5d3fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fd9;
$custom-light: #9877e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fd9",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 251.688,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.22073,
    "h": 284
  },
  "luminance": 0.10892
}

Semantic roles & 50–950 ramp

primary
#5D3FD9
secondary
#CEDA9A
accent
#EA3EC8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D3FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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