#5B34C5#5B34C5

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

Color values

HEX#5B34C5
RGBrgb(91, 52, 197)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 74%, 77%)
CMYKcmyk(53.8%, 73.6%, 0%, 22.7%)
CIE-LABlab(35.42, 52.22, -69.33)
CIE-LCHlch(35.42, 86.80, 306.99°)
OKLaboklab(46.65% 0.0634 -0.1994)
OKLCHoklch(46.65% 0.209 287.6)
XYZxyz(15.6174, 8.7105, 53.6709)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34C5 #9EC534
analogous
#3456C5 #5B34C5 #A434C5
triadic
#5B34C5 #C55B34 #34C55B
tetradic
#5B34C5 #C53456 #9EC534 #34C5A4
square
#5B34C5 #C53456 #9EC534 #34C5A4
split-complementary
#5B34C5 #C5A434 #56C534
monochromatic
#2E1A64 #452795 #5B34C5 #8061D5 #A791E2

Accessibility & contrast

On white

7.66
#5B34C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B34C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34C5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34C5#FFFFFF#000000##FFFFFF
##5B34C51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#2F5C7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b34c5;
/* rgb */ color: rgb(91, 52, 197);
/* oklch */ color: oklch(46.6% 0.209 287.6);
Tailwind
colors: {
  custom: {
    50: '#946fd8',
    500: '#5b34c5',
    950: '#000000',
  },
}
SCSS
$custom: #5b34c5;
$custom-light: #946fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34c5",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 256.138,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46649,
    "c": 0.20922,
    "h": 287.6
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#5B34C5
secondary
#BACD88
accent
#E146B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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