#5B34CF#5B34CF

#5B34CF is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.221 H 286.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5B34CF
RGBrgb(91, 52, 207)
HSLhsl(255, 62%, 51%)
HSVhsv(255, 75%, 81%)
CMYKcmyk(56%, 74.9%, 0%, 18.8%)
CIE-LABlab(36.34, 55.02, -73.65)
CIE-LCHlch(36.34, 91.93, 306.76°)
OKLaboklab(47.57% 0.0609 -0.212)
OKLCHoklch(47.57% 0.221 286)
XYZxyz(16.8015, 9.1842, 59.9068)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34CF #A8CF34
analogous
#345ACF #5B34CF #A934CF
triadic
#5B34CF #CF5B34 #34CF5B
tetradic
#5B34CF #CF345A #A8CF34 #34CFA9
square
#5B34CF #CF345A #A8CF34 #34CFA9
split-complementary
#5B34CF #CFA934 #5ACF34
monochromatic
#2F1A6E #4526A0 #5B34CF #8365DB #AB97E6

Accessibility & contrast

On white

7.40
#5B34CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B34CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34CF
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34CF#FFFFFF#000000##FFFFFF
##5B34CF1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#23607F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b34cf;
/* rgb */ color: rgb(91, 52, 207);
/* oklch */ color: oklch(47.6% 0.221 286.0);
Tailwind
colors: {
  custom: {
    50: '#9670df',
    500: '#5b34cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b34cf;
$custom-light: #9670df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34cf",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 255.097,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.22061,
    "h": 286
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#5B34CF
secondary
#C0D28D
accent
#E543BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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