#5D34BB#5D34BB

#5D34BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.198 H 290.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5D34BB
RGBrgb(93, 52, 187)
HSLhsl(258, 56%, 47%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(50.3%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.74, 49.73, -64.56)
CIE-LCHlch(34.74, 81.49, 307.60°)
OKLaboklab(45.95% 0.0686 -0.1853)
OKLCHoklch(45.95% 0.198 290.3)
XYZxyz(14.7093, 8.3704, 47.8447)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34BB #92BB34
analogous
#344FBB #5D34BB #A134BB
triadic
#5D34BB #BB5D34 #34BB5D
tetradic
#5D34BB #BB344F #92BB34 #34BBA1
square
#5D34BB #BB344F #92BB34 #34BBA1
split-complementary
#5D34BB #BBA134 #4FBB34
monochromatic
#2D195B #45278B #5D34BB #7F5BD1 #A48BDF

Accessibility & contrast

On white

7.85
#5D34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D34BB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34BB#FFFFFF#000000##FFFFFF
##5D34BB1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#3D5874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d34bb;
/* rgb */ color: rgb(93, 52, 187);
/* oklch */ color: oklch(45.9% 0.198 290.3);
Tailwind
colors: {
  custom: {
    50: '#946fd1',
    500: '#5d34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d34bb;
$custom-light: #946fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34bb",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 258.222,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.19763,
    "h": 290.3
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#5D34BB
secondary
#B3C982
accent
#E048B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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