#5D3CBB#5D3CBB

#5D3CBB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.188 H 289.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5D3CBB
RGBrgb(93, 60, 187)
HSLhsl(256, 51%, 48%)
HSVhsv(256, 68%, 73%)
CMYKcmyk(50.3%, 67.9%, 0%, 26.7%)
CIE-LABlab(36.26, 45.51, -62.08)
CIE-LCHlch(36.26, 76.97, 306.24°)
OKLaboklab(47.03% 0.0613 -0.1781)
OKLCHoklch(47.03% 0.188 289)
XYZxyz(15.0971, 9.1461, 47.9740)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CBB #9ABB3C
analogous
#3C5ABB #5D3CBB #9C3CBB
triadic
#5D3CBB #BB5D3C #3CBB5D
tetradic
#5D3CBB #BB3C5A #9ABB3C #3CBB9C
square
#5D3CBB #BB3C5A #9ABB3C #3CBB9C
split-complementary
#5D3CBB #BB9C3C #5ABB3C
monochromatic
#2F1E5E #462D8D #5D3CBB #8166CE #A795DD

Accessibility & contrast

On white

7.42
#5D3CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5D3CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CBB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CBB#FFFFFF#000000##FFFFFF
##5D3CBB1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#3C5C76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d3cbb;
/* rgb */ color: rgb(93, 60, 187);
/* oklch */ color: oklch(47.0% 0.188 289.0);
Tailwind
colors: {
  custom: {
    50: '#9374d0',
    500: '#5d3cbb',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cbb;
$custom-light: #9374d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cbb",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 255.591,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47032,
    "c": 0.18832,
    "h": 289
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#5D3CBB
secondary
#B8C88B
accent
#DB4DB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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