#5D34B9#5D34B9

#5D34B9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.195 H 290.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5D34B9
RGBrgb(93, 52, 185)
HSLhsl(258, 56%, 46%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(49.7%, 71.9%, 0%, 27.5%)
CIE-LABlab(34.57, 49.17, -63.66)
CIE-LCHlch(34.57, 80.44, 307.68°)
OKLaboklab(45.77% 0.069 -0.1827)
OKLCHoklch(45.77% 0.195 290.7)
XYZxyz(14.4967, 8.2853, 46.7249)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B9 #90B934
analogous
#344EB9 #5D34B9 #A034B9
triadic
#5D34B9 #B95D34 #34B95D
tetradic
#5D34B9 #B9344E #90B934 #34B9A0
square
#5D34B9 #B9344E #90B934 #34B9A0
split-complementary
#5D34B9 #B9A034 #4EB934
monochromatic
#2D1959 #452789 #5D34B9 #7E5AD1 #A389DE

Accessibility & contrast

On white

7.90
#5D34B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5D34B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B9
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B9#FFFFFF#000000##FFFFFF
##5D34B91.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#3E5773
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d34b9;
/* rgb */ color: rgb(93, 52, 185);
/* oklch */ color: oklch(45.8% 0.195 290.7);
Tailwind
colors: {
  custom: {
    50: '#946fcf',
    500: '#5d34b9',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b9;
$custom-light: #946fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b9",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 258.496,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45772,
    "c": 0.19532,
    "h": 290.7
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#5D34B9
secondary
#B2C881
accent
#DF48B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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