#5B34AC#5B34AC

#5B34AC is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.180 H 292.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5B34AC
RGBrgb(91, 52, 172)
HSLhsl(260, 54%, 44%)
HSVhsv(260, 70%, 67%)
CMYKcmyk(47.1%, 69.8%, 0%, 32.5%)
CIE-LABlab(33.26, 45.20, -58.09)
CIE-LCHlch(33.26, 73.60, 307.89°)
OKLaboklab(44.45% 0.0686 -0.1664)
OKLCHoklch(44.45% 0.18 292.4)
XYZxyz(12.9867, 7.6583, 39.8157)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34AC #85AC34
analogous
#3449AC #5B34AC #9734AC
triadic
#5B34AC #AC5B34 #34AC5B
tetradic
#5B34AC #AC3449 #85AC34 #34AC97
square
#5B34AC #AC3449 #85AC34 #34AC97
split-complementary
#5B34AC #AC9734 #49AC34
monochromatic
#29184E #42267D #5B34AC #7A52CB #9E81D9

Accessibility & contrast

On white

8.29
#5B34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5B34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34AC
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34AC#FFFFFF#000000##FFFFFF
##5B34AC1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#42526C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b34ac;
/* rgb */ color: rgb(91, 52, 172);
/* oklch */ color: oklch(44.5% 0.180 292.4);
Tailwind
colors: {
  custom: {
    50: '#916ec6',
    500: '#5b34ac',
    950: '#000000',
  },
}
SCSS
$custom: #5b34ac;
$custom-light: #916ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34ac",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 259.5,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44451,
    "c": 0.18001,
    "h": 292.4
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#5B34AC
secondary
#ABC279
accent
#DD4BAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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