#5D34C2#5D34C2

#5D34C2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.206 H 289.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5D34C2
RGBrgb(93, 52, 194)
HSLhsl(257, 58%, 48%)
HSVhsv(257, 73%, 76%)
CMYKcmyk(52.1%, 73.2%, 0%, 23.9%)
CIE-LABlab(35.36, 51.67, -67.67)
CIE-LCHlch(35.36, 85.15, 307.36°)
OKLaboklab(46.57% 0.067 -0.1945)
OKLCHoklch(46.57% 0.206 289)
XYZxyz(15.4770, 8.6775, 51.8879)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34C2 #99C234
analogous
#3452C2 #5D34C2 #A434C2
triadic
#5D34C2 #C25D34 #34C25D
tetradic
#5D34C2 #C23452 #99C234 #34C2A4
square
#5D34C2 #C23452 #99C234 #34C2A4
split-complementary
#5D34C2 #C2A434 #52C234
monochromatic
#2F1A61 #462792 #5D34C2 #815FD4 #A78FE1

Accessibility & contrast

On white

7.68
#5D34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5D34C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34C2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34C2#FFFFFF#000000##FFFFFF
##5D34C21.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#375A78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d34c2;
/* rgb */ color: rgb(93, 52, 194);
/* oklch */ color: oklch(46.6% 0.206 289.0);
Tailwind
colors: {
  custom: {
    50: '#9570d6',
    500: '#5d34c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d34c2;
$custom-light: #9570d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34c2",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 257.324,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46569,
    "c": 0.20569,
    "h": 289
  },
  "luminance": 0.08678
}

Semantic roles & 50–950 ramp

primary
#5D34C2
secondary
#B8CC86
accent
#E147B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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