#5D34B8#5D34B8

#5D34B8 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.194 H 290.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5D34B8
RGBrgb(93, 52, 184)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 72%, 72%)
CMYKcmyk(49.5%, 71.7%, 0%, 27.8%)
CIE-LABlab(34.48, 48.89, -63.21)
CIE-LCHlch(34.48, 79.91, 307.72°)
OKLaboklab(45.68% 0.0692 -0.1814)
OKLCHoklch(45.68% 0.194 290.9)
XYZxyz(14.3915, 8.2433, 46.1709)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B8 #8FB834
analogous
#344DB8 #5D34B8 #9F34B8
triadic
#5D34B8 #B85D34 #34B85D
tetradic
#5D34B8 #B8344D #8FB834 #34B89F
square
#5D34B8 #B8344D #8FB834 #34B89F
split-complementary
#5D34B8 #B89F34 #4DB834
monochromatic
#2D1959 #452788 #5D34B8 #7E59D0 #A389DE

Accessibility & contrast

On white

7.93
#5D34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B8#FFFFFF#000000##FFFFFF
##5D34B81.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#3F5673
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d34b8;
/* rgb */ color: rgb(93, 52, 184);
/* oklch */ color: oklch(45.7% 0.194 290.9);
Tailwind
colors: {
  custom: {
    50: '#936fce',
    500: '#5d34b8',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b8;
$custom-light: #936fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b8",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 258.636,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45684,
    "c": 0.19415,
    "h": 290.9
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#5D34B8
secondary
#B1C880
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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