#5D33B5#5D33B5

#5D33B5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.192 H 291.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5D33B5
RGBrgb(93, 51, 181)
HSLhsl(259, 56%, 45%)
HSVhsv(259, 72%, 71%)
CMYKcmyk(48.6%, 71.8%, 0%, 29%)
CIE-LABlab(34.05, 48.57, -62.15)
CIE-LCHlch(34.05, 78.88, 308.00°)
OKLaboklab(45.29% 0.0707 -0.1783)
OKLCHoklch(45.29% 0.192 291.6)
XYZxyz(14.0362, 8.0305, 44.5176)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D33B5 #8BB533
analogous
#334AB5 #5D33B5 #9E33B5
triadic
#5D33B5 #B55D33 #33B55D
tetradic
#5D33B5 #B5334A #8BB533 #33B59E
square
#5D33B5 #B5334A #8BB533 #33B59E
split-complementary
#5D33B5 #B59E33 #4AB533
monochromatic
#2C1856 #442685 #5D33B5 #7D56CF #A286DD

Accessibility & contrast

On white

8.06
#5D33B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5D33B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D33B5
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D33B5#FFFFFF#000000##FFFFFF
##5D33B51.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#415571
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d33b5;
/* rgb */ color: rgb(93, 51, 181);
/* oklch */ color: oklch(45.3% 0.192 291.6);
Tailwind
colors: {
  custom: {
    50: '#936ecc',
    500: '#5d33b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d33b5;
$custom-light: #936ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d33b5",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 259.385,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45294,
    "c": 0.19181,
    "h": 291.6
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#5D33B5
secondary
#AFC67D
accent
#DF48AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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