#5D34B7#5D34B7

#5D34B7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.193 H 291.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5D34B7
RGBrgb(93, 52, 183)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 72%, 72%)
CMYKcmyk(49.2%, 71.6%, 0%, 28.2%)
CIE-LABlab(34.40, 48.61, -62.76)
CIE-LCHlch(34.40, 79.39, 307.76°)
OKLaboklab(45.6% 0.0694 -0.1801)
OKLCHoklch(45.6% 0.193 291.1)
XYZxyz(14.2870, 8.2015, 45.6208)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B7 #8EB734
analogous
#344CB7 #5D34B7 #9E34B7
triadic
#5D34B7 #B75D34 #34B75D
tetradic
#5D34B7 #B7344C #8EB734 #34B79E
square
#5D34B7 #B7344C #8EB734 #34B79E
split-complementary
#5D34B7 #B79E34 #4CB734
monochromatic
#2D1958 #452687 #5D34B7 #7E59D0 #A388DD

Accessibility & contrast

On white

7.95
#5D34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5D34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B7#FFFFFF#000000##FFFFFF
##5D34B71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#3F5672
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d34b7;
/* rgb */ color: rgb(93, 52, 183);
/* oklch */ color: oklch(45.6% 0.193 291.1);
Tailwind
colors: {
  custom: {
    50: '#936fce',
    500: '#5d34b7',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b7;
$custom-light: #936fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b7",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 258.779,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45597,
    "c": 0.19299,
    "h": 291.1
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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