#5D34CA#5D34CA

#5D34CA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.215 H 287.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5D34CA
RGBrgb(93, 52, 202)
HSLhsl(256, 59%, 50%)
HSVhsv(256, 74%, 79%)
CMYKcmyk(54%, 74.3%, 0%, 20.8%)
CIE-LABlab(36.07, 53.90, -71.17)
CIE-LCHlch(36.07, 89.28, 307.14°)
OKLaboklab(47.29% 0.0651 -0.2047)
OKLCHoklch(47.29% 0.215 287.6)
XYZxyz(16.3997, 9.0466, 56.7477)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34CA #A1CA34
analogous
#3456CA #5D34CA #A834CA
triadic
#5D34CA #CA5D34 #34CA5D
tetradic
#5D34CA #CA3456 #A1CA34 #34CAA8
square
#5D34CA #CA3456 #A1CA34 #34CAA8
split-complementary
#5D34CA #CAA834 #56CA34
monochromatic
#301B69 #472799 #5D34CA #8464D7 #AA95E4

Accessibility & contrast

On white

7.47
#5D34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5D34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34CA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34CA#FFFFFF#000000##FFFFFF
##5D34CA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#305D7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d34ca;
/* rgb */ color: rgb(93, 52, 202);
/* oklch */ color: oklch(47.3% 0.215 287.6);
Tailwind
colors: {
  custom: {
    50: '#9670db',
    500: '#5d34ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d34ca;
$custom-light: #9670db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34ca",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 256.4,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.21481,
    "h": 287.6
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#5D34CA
secondary
#BCCF8B
accent
#E246B7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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