#5D34B4#5D34B4

#5D34B4 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.189 H 291.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5D34B4
RGBrgb(93, 52, 180)
HSLhsl(259, 55%, 45%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.3%, 71.1%, 0%, 29.4%)
CIE-LABlab(34.14, 47.78, -61.40)
CIE-LCHlch(34.14, 77.80, 307.89°)
OKLaboklab(45.34% 0.07 -0.1761)
OKLCHoklch(45.34% 0.189 291.7)
XYZxyz(13.9781, 8.0779, 43.9939)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B4 #8BB434
analogous
#344BB4 #5D34B4 #9D34B4
triadic
#5D34B4 #B45D34 #34B45D
tetradic
#5D34B4 #B4344B #8BB434 #34B49D
square
#5D34B4 #B4344B #8BB434 #34B49D
split-complementary
#5D34B4 #B49D34 #4BB434
monochromatic
#2C1955 #442685 #5D34B4 #7D57CE #A286DC

Accessibility & contrast

On white

8.03
#5D34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5D34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B4
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B4#FFFFFF#000000##FFFFFF
##5D34B41.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#415570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d34b4;
/* rgb */ color: rgb(93, 52, 180);
/* oklch */ color: oklch(45.3% 0.189 291.7);
Tailwind
colors: {
  custom: {
    50: '#936fcb',
    500: '#5d34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b4;
$custom-light: #936fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b4",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 259.219,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45338,
    "c": 0.18949,
    "h": 291.7
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#5D34B4
secondary
#AFC67E
accent
#DF49AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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