#5D34BC#5D34BC

#5D34BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.199 H 290.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5D34BC
RGBrgb(93, 52, 188)
HSLhsl(258, 57%, 47%)
HSVhsv(258, 72%, 74%)
CMYKcmyk(50.5%, 72.3%, 0%, 26.3%)
CIE-LABlab(34.83, 50.00, -65.01)
CIE-LCHlch(34.83, 82.02, 307.57°)
OKLaboklab(46.04% 0.0684 -0.1867)
OKLCHoklch(46.04% 0.199 290.1)
XYZxyz(14.8167, 8.4134, 48.4104)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34BC #93BC34
analogous
#344FBC #5D34BC #A134BC
triadic
#5D34BC #BC5D34 #34BC5D
tetradic
#5D34BC #BC344F #93BC34 #34BCA1
square
#5D34BC #BC344F #93BC34 #34BCA1
split-complementary
#5D34BC #BCA134 #4FBC34
monochromatic
#2E195C #45278C #5D34BC #7F5BD2 #A58BDF

Accessibility & contrast

On white

7.83
#5D34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5D34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34BC
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34BC#FFFFFF#000000##FFFFFF
##5D34BC1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#3C5875
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d34bc;
/* rgb */ color: rgb(93, 52, 188);
/* oklch */ color: oklch(46.0% 0.199 290.1);
Tailwind
colors: {
  custom: {
    50: '#946fd1',
    500: '#5d34bc',
    950: '#000000',
  },
}
SCSS
$custom: #5d34bc;
$custom-light: #946fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34bc",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 258.088,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46035,
    "c": 0.19878,
    "h": 290.1
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#5D34BC
secondary
#B4C983
accent
#E048B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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