#5B34C4#5B34C4

#5B34C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.208 H 287.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B34C4
RGBrgb(91, 52, 196)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 73%, 77%)
CMYKcmyk(53.6%, 73.5%, 0%, 23.1%)
CIE-LABlab(35.33, 51.94, -68.89)
CIE-LCHlch(35.33, 86.28, 307.01°)
OKLaboklab(46.56% 0.0636 -0.1981)
OKLCHoklch(46.56% 0.208 287.8)
XYZxyz(15.5032, 8.6649, 53.0694)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34C4 #9DC434
analogous
#3455C4 #5B34C4 #A334C4
triadic
#5B34C4 #C45B34 #34C45B
tetradic
#5B34C4 #C43455 #9DC434 #34C4A3
square
#5B34C4 #C43455 #9DC434 #34C4A3
split-complementary
#5B34C4 #C4A334 #55C434
monochromatic
#2E1A63 #452794 #5B34C4 #8060D5 #A791E2

Accessibility & contrast

On white

7.68
#5B34C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B34C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34C4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34C4#FFFFFF#000000##FFFFFF
##5B34C41.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#305B79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b34c4;
/* rgb */ color: rgb(91, 52, 196);
/* oklch */ color: oklch(46.6% 0.208 287.8);
Tailwind
colors: {
  custom: {
    50: '#946fd7',
    500: '#5b34c4',
    950: '#000000',
  },
}
SCSS
$custom: #5b34c4;
$custom-light: #946fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34c4",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 256.25,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46558,
    "c": 0.20808,
    "h": 287.8
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#5B34C4
secondary
#BACC87
accent
#E147B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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