#5D34B2#5D34B2

#5D34B2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.187 H 292.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5D34B2
RGBrgb(93, 52, 178)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 70%)
CMYKcmyk(47.8%, 70.8%, 0%, 30.2%)
CIE-LABlab(33.98, 47.22, -60.49)
CIE-LCHlch(33.98, 76.74, 307.98°)
OKLaboklab(45.17% 0.0704 -0.1734)
OKLCHoklch(45.17% 0.187 292.1)
XYZxyz(13.7758, 7.9970, 42.9286)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B2 #89B234
analogous
#344AB2 #5D34B2 #9C34B2
triadic
#5D34B2 #B25D34 #34B25D
tetradic
#5D34B2 #B2344A #89B234 #34B29C
square
#5D34B2 #B2344A #89B234 #34B29C
split-complementary
#5D34B2 #B29C34 #4AB234
monochromatic
#2C1853 #442683 #5D34B2 #7D56CE #A185DB

Accessibility & contrast

On white

8.08
#5D34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5D34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B2
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B2#FFFFFF#000000##FFFFFF
##5D34B21.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#42546F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d34b2;
/* rgb */ color: rgb(93, 52, 178);
/* oklch */ color: oklch(45.2% 0.187 292.1);
Tailwind
colors: {
  custom: {
    50: '#936fca',
    500: '#5d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b2;
$custom-light: #936fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b2",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 259.524,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45166,
    "c": 0.18715,
    "h": 292.1
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#5D34B2
secondary
#AEC57D
accent
#DE4AAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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