#5D34BE#5D34BE

#5D34BE is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.201 H 289.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5D34BE
RGBrgb(93, 52, 190)
HSLhsl(258, 57%, 47%)
HSVhsv(258, 73%, 75%)
CMYKcmyk(51.1%, 72.6%, 0%, 25.5%)
CIE-LABlab(35.00, 50.56, -65.90)
CIE-LCHlch(35.00, 83.06, 307.50°)
OKLaboklab(46.21% 0.0679 -0.1893)
OKLCHoklch(46.21% 0.201 289.7)
XYZxyz(15.0338, 8.5002, 49.5538)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34BE #95BE34
analogous
#3450BE #5D34BE #A234BE
triadic
#5D34BE #BE5D34 #34BE5D
tetradic
#5D34BE #BE3450 #95BE34 #34BEA2
square
#5D34BE #BE3450 #95BE34 #34BEA2
split-complementary
#5D34BE #BEA234 #50BE34
monochromatic
#2E1A5E #45278E #5D34BE #805DD3 #A58DE0

Accessibility & contrast

On white

7.78
#5D34BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D34BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34BE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34BE#FFFFFF#000000##FFFFFF
##5D34BE1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#3A5976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d34be;
/* rgb */ color: rgb(93, 52, 190);
/* oklch */ color: oklch(46.2% 0.201 289.7);
Tailwind
colors: {
  custom: {
    50: '#946fd3',
    500: '#5d34be',
    950: '#000000',
  },
}
SCSS
$custom: #5d34be;
$custom-light: #946fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34be",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 257.826,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46212,
    "c": 0.2011,
    "h": 289.7
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

primary
#5D34BE
secondary
#B5CA84
accent
#E048B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D34BE

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

Preview Lab → · Contrast checker → · Palette generator →

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