#5D34BA#5D34BA

#5D34BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.196 H 290.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5D34BA
RGBrgb(93, 52, 186)
HSLhsl(258, 56%, 47%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(50%, 72%, 0%, 27.1%)
CIE-LABlab(34.66, 49.45, -64.11)
CIE-LCHlch(34.66, 80.97, 307.64°)
OKLaboklab(45.86% 0.0688 -0.184)
OKLCHoklch(45.86% 0.196 290.5)
XYZxyz(14.6026, 8.3277, 47.2828)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34BA #91BA34
analogous
#344EBA #5D34BA #A034BA
triadic
#5D34BA #BA5D34 #34BA5D
tetradic
#5D34BA #BA344E #91BA34 #34BAA0
square
#5D34BA #BA344E #91BA34 #34BAA0
split-complementary
#5D34BA #BAA034 #4EBA34
monochromatic
#2D195A #45278A #5D34BA #7F5AD1 #A48ADE

Accessibility & contrast

On white

7.88
#5D34BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5D34BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34BA
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34BA#FFFFFF#000000##FFFFFF
##5D34BA1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#3D5774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d34ba;
/* rgb */ color: rgb(93, 52, 186);
/* oklch */ color: oklch(45.9% 0.196 290.5);
Tailwind
colors: {
  custom: {
    50: '#946fd0',
    500: '#5d34ba',
    950: '#000000',
  },
}
SCSS
$custom: #5d34ba;
$custom-light: #946fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34ba",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 258.358,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45859,
    "c": 0.19648,
    "h": 290.5
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

primary
#5D34BA
secondary
#B3C881
accent
#E048B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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