#5B34CD#5B34CD

#5B34CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.218 H 286.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5B34CD
RGBrgb(91, 52, 205)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 80%)
CMYKcmyk(55.6%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.15, 54.46, -72.79)
CIE-LCHlch(36.15, 90.91, 306.80°)
OKLaboklab(47.39% 0.0614 -0.2095)
OKLCHoklch(47.39% 0.218 286.3)
XYZxyz(16.5585, 9.0870, 58.6272)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34CD #A6CD34
analogous
#3459CD #5B34CD #A734CD
triadic
#5B34CD #CD5B34 #34CD5B
tetradic
#5B34CD #CD3459 #A6CD34 #34CDA7
square
#5B34CD #CD3459 #A6CD34 #34CDA7
split-complementary
#5B34CD #CDA734 #59CD34
monochromatic
#2F1B6C #45279D #5B34CD #8365D9 #AA96E5

Accessibility & contrast

On white

7.45
#5B34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34CD
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34CD#FFFFFF#000000##FFFFFF
##5B34CD1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#265F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b34cd;
/* rgb */ color: rgb(91, 52, 205);
/* oklch */ color: oklch(47.4% 0.218 286.3);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5b34cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b34cd;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34cd",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 255.294,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.21835,
    "h": 286.3
  },
  "luminance": 0.09088
}

Semantic roles & 50–950 ramp

primary
#5B34CD
secondary
#BFD18C
accent
#E444BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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