#5D34B6#5D34B6

#5D34B6 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.192 H 291.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5D34B6
RGBrgb(93, 52, 182)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.9%, 71.4%, 0%, 28.6%)
CIE-LABlab(34.31, 48.34, -62.31)
CIE-LCHlch(34.31, 78.86, 307.80°)
OKLaboklab(45.51% 0.0696 -0.1787)
OKLCHoklch(45.51% 0.192 291.3)
XYZxyz(14.1833, 8.1600, 45.0746)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B6 #8DB634
analogous
#344CB6 #5D34B6 #9E34B6
triadic
#5D34B6 #B65D34 #34B65D
tetradic
#5D34B6 #B6344C #8DB634 #34B69E
square
#5D34B6 #B6344C #8DB634 #34B69E
split-complementary
#5D34B6 #B69E34 #4CB634
monochromatic
#2C1957 #452686 #5D34B6 #7E58CF #A288DD

Accessibility & contrast

On white

7.98
#5D34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B6
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B6#FFFFFF#000000##FFFFFF
##5D34B61.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#405671
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d34b6;
/* rgb */ color: rgb(93, 52, 182);
/* oklch */ color: oklch(45.5% 0.192 291.3);
Tailwind
colors: {
  custom: {
    50: '#936fcd',
    500: '#5d34b6',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b6;
$custom-light: #936fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b6",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 258.923,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.19182,
    "h": 291.3
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#5D34B6
secondary
#B0C77F
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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