#5D34CC#5D34CC

#5D34CC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.217 H 287.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5D34CC
RGBrgb(93, 52, 204)
HSLhsl(256, 60%, 50%)
HSVhsv(256, 75%, 80%)
CMYKcmyk(54.4%, 74.5%, 0%, 20%)
CIE-LABlab(36.26, 54.46, -72.03)
CIE-LCHlch(36.26, 90.30, 307.09°)
OKLaboklab(47.48% 0.0646 -0.2072)
OKLCHoklch(47.48% 0.217 287.3)
XYZxyz(16.6380, 9.1419, 58.0029)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34CC #A3CC34
analogous
#3457CC #5D34CC #A934CC
triadic
#5D34CC #CC5D34 #34CC5D
tetradic
#5D34CC #CC3457 #A3CC34 #34CCA9
square
#5D34CC #CC3457 #A3CC34 #34CCA9
split-complementary
#5D34CC #CCA934 #57CC34
monochromatic
#301B6B #47279C #5D34CC #8465D8 #AB96E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D34CC#FFFFFF#000000##FFFFFF
##5D34CC1.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)
#0059D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#2E5E7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d34cc;
/* rgb */ color: rgb(93, 52, 204);
/* oklch */ color: oklch(47.5% 0.217 287.3);
Tailwind
colors: {
  custom: {
    50: '#9670dd',
    500: '#5d34cc',
    950: '#000000',
  },
}
SCSS
$custom: #5d34cc;
$custom-light: #9670dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34cc",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 256.184,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47478,
    "c": 0.21707,
    "h": 287.3
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#5D34CC
secondary
#BED08C
accent
#E345B8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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