#5B34CC#5B34CC

#5B34CC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.217 H 286.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5B34CC
RGBrgb(91, 52, 204)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 80%)
CMYKcmyk(55.4%, 74.5%, 0%, 20%)
CIE-LABlab(36.06, 54.18, -72.36)
CIE-LCHlch(36.06, 90.40, 306.82°)
OKLaboklab(47.29% 0.0617 -0.2083)
OKLCHoklch(47.29% 0.217 286.5)
XYZxyz(16.4382, 9.0389, 57.9935)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34CC #A5CC34
analogous
#3459CC #5B34CC #A734CC
triadic
#5B34CC #CC5B34 #34CC5B
tetradic
#5B34CC #CC3459 #A5CC34 #34CCA7
square
#5B34CC #CC3459 #A5CC34 #34CCA7
split-complementary
#5B34CC #CCA734 #59CC34
monochromatic
#2F1B6B #45279C #5B34CC #8365D8 #AA96E5

Accessibility & contrast

On white

7.48
#5B34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5B34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34CC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34CC#FFFFFF#000000##FFFFFF
##5B34CC1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#285E7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b34cc;
/* rgb */ color: rgb(91, 52, 204);
/* oklch */ color: oklch(47.3% 0.217 286.5);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5b34cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b34cc;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34cc",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 255.395,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47292,
    "c": 0.21721,
    "h": 286.5
  },
  "luminance": 0.0904
}

Semantic roles & 50–950 ramp

primary
#5B34CC
secondary
#BED08C
accent
#E345BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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