#5D34CD#5D34CD

#5D34CD is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.218 H 287.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5D34CD
RGBrgb(93, 52, 205)
HSLhsl(256, 60%, 50%)
HSVhsv(256, 75%, 80%)
CMYKcmyk(54.6%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.35, 54.74, -72.46)
CIE-LCHlch(36.35, 90.81, 307.07°)
OKLaboklab(47.57% 0.0643 -0.2085)
OKLCHoklch(47.57% 0.218 287.1)
XYZxyz(16.7584, 9.1900, 58.6366)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34CD #A4CD34
analogous
#3458CD #5D34CD #A934CD
triadic
#5D34CD #CD5D34 #34CD5D
tetradic
#5D34CD #CD3458 #A4CD34 #34CDA9
square
#5D34CD #CD3458 #A4CD34 #34CDA9
split-complementary
#5D34CD #CDA934 #58CD34
monochromatic
#301B6C #46279D #5D34CD #8465D9 #AB96E5

Accessibility & contrast

On white

7.40
#5D34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5D34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34CD
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34CD#FFFFFF#000000##FFFFFF
##5D34CD1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#2C5F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d34cd;
/* rgb */ color: rgb(93, 52, 205);
/* oklch */ color: oklch(47.6% 0.218 287.1);
Tailwind
colors: {
  custom: {
    50: '#9670dd',
    500: '#5d34cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d34cd;
$custom-light: #9670dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34cd",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 256.078,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4757,
    "c": 0.2182,
    "h": 287.1
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#5D34CD
secondary
#BED18C
accent
#E444B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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