#5D33D6#5D33D6

#5D33D6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.229 H 285.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5D33D6
RGBrgb(93, 51, 214)
HSLhsl(255, 67%, 52%)
HSVhsv(255, 76%, 84%)
CMYKcmyk(56.5%, 76.2%, 0%, 16.1%)
CIE-LABlab(37.02, 57.70, -76.56)
CIE-LCHlch(37.02, 95.87, 307.00°)
OKLaboklab(48.3% 0.0627 -0.2205)
OKLCHoklch(48.3% 0.229 285.9)
XYZxyz(17.8320, 9.5488, 64.5088)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D33D6 #ACD633
analogous
#335BD6 #5D33D6 #AF33D6
triadic
#5D33D6 #D65D33 #33D65D
tetradic
#5D33D6 #D6335B #ACD633 #33D6AF
square
#5D33D6 #D6335B #ACD633 #33D6AF
split-complementary
#5D33D6 #D6AF33 #5BD633
monochromatic
#301877 #4522AA #5D33D6 #8566E0 #AE99EA

Accessibility & contrast

On white

7.22
#5D33D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5D33D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D33D6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D33D6#FFFFFF#000000##FFFFFF
##5D33D61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDB
Deuteranopia (green-blind)
#0052D3
Tritanopia (blue-blind)
#206283
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d33d6;
/* rgb */ color: rgb(93, 51, 214);
/* oklch */ color: oklch(48.3% 0.229 285.9);
Tailwind
colors: {
  custom: {
    50: '#9870e4',
    500: '#5d33d6',
    950: '#000000',
  },
}
SCSS
$custom: #5d33d6;
$custom-light: #9870e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d33d6",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 214
  },
  "hsl": {
    "h": 255.46,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48295,
    "c": 0.22922,
    "h": 285.9
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#5D33D6
secondary
#C4D68F
accent
#E93EBD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D33D6

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

Preview Lab → · Contrast checker → · Palette generator →

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