#5D34B3#5D34B3

#5D34B3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.188 H 291.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5D34B3
RGBrgb(93, 52, 179)
HSLhsl(259, 55%, 45%)
HSVhsv(259, 71%, 70%)
CMYKcmyk(48%, 70.9%, 0%, 29.8%)
CIE-LABlab(34.06, 47.50, -60.94)
CIE-LCHlch(34.06, 77.27, 307.93°)
OKLaboklab(45.25% 0.0702 -0.1747)
OKLCHoklch(45.25% 0.188 291.9)
XYZxyz(13.8766, 8.0373, 43.4593)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34B3 #8AB334
analogous
#344BB3 #5D34B3 #9C34B3
triadic
#5D34B3 #B35D34 #34B35D
tetradic
#5D34B3 #B3344B #8AB334 #34B39C
square
#5D34B3 #B3344B #8AB334 #34B39C
split-complementary
#5D34B3 #B39C34 #4BB334
monochromatic
#2C1854 #442684 #5D34B3 #7D56CE #A186DC

Accessibility & contrast

On white

8.05
#5D34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5D34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34B3
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34B3#FFFFFF#000000##FFFFFF
##5D34B31.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#425570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d34b3;
/* rgb */ color: rgb(93, 52, 179);
/* oklch */ color: oklch(45.3% 0.188 291.9);
Tailwind
colors: {
  custom: {
    50: '#936fcb',
    500: '#5d34b3',
    950: '#000000',
  },
}
SCSS
$custom: #5d34b3;
$custom-light: #936fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34b3",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 259.37,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45252,
    "c": 0.18832,
    "h": 291.9
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#5D34B3
secondary
#AEC57D
accent
#DE49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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