#5B34AA#5B34AA

#5B34AA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.178 H 292.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5B34AA
RGBrgb(91, 52, 170)
HSLhsl(260, 53%, 44%)
HSVhsv(260, 69%, 67%)
CMYKcmyk(46.5%, 69.4%, 0%, 33.3%)
CIE-LABlab(33.10, 44.64, -57.16)
CIE-LCHlch(33.10, 72.52, 307.99°)
OKLaboklab(44.28% 0.069 -0.1637)
OKLCHoklch(44.28% 0.178 292.8)
XYZxyz(12.7961, 7.5820, 38.8117)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34AA #83AA34
analogous
#3448AA #5B34AA #9634AA
triadic
#5B34AA #AA5B34 #34AA5B
tetradic
#5B34AA #AA3448 #83AA34 #34AA96
square
#5B34AA #AA3448 #83AA34 #34AA96
split-complementary
#5B34AA #AA9634 #48AA34
monochromatic
#29174C #42267B #5B34AA #7951CA #9D80D8

Accessibility & contrast

On white

8.35
#5B34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34AA
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34AA#FFFFFF#000000##FFFFFF
##5B34AA1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#43516B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b34aa;
/* rgb */ color: rgb(91, 52, 170);
/* oklch */ color: oklch(44.3% 0.178 292.8);
Tailwind
colors: {
  custom: {
    50: '#906ec4',
    500: '#5b34aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b34aa;
$custom-light: #906ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34aa",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 259.831,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44283,
    "c": 0.17762,
    "h": 292.8
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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