#5B34AF#5B34AF

#5B34AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.184 H 291.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5B34AF
RGBrgb(91, 52, 175)
HSLhsl(259, 54%, 45%)
HSVhsv(259, 70%, 69%)
CMYKcmyk(48%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.51, 46.04, -59.47)
CIE-LCHlch(33.51, 75.21, 307.74°)
OKLaboklab(44.71% 0.0681 -0.1705)
OKLCHoklch(44.71% 0.184 291.8)
XYZxyz(13.2781, 7.7748, 41.3502)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34AF #88AF34
analogous
#344BAF #5B34AF #9834AF
triadic
#5B34AF #AF5B34 #34AF5B
tetradic
#5B34AF #AF344B #88AF34 #34AF98
square
#5B34AF #AF344B #88AF34 #34AF98
split-complementary
#5B34AF #AF9834 #4BAF34
monochromatic
#2A1851 #422680 #5B34AF #7A54CC #9F83DA

Accessibility & contrast

On white

8.22
#5B34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5B34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34AF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34AF#FFFFFF#000000##FFFFFF
##5B34AF1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#41536E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b34af;
/* rgb */ color: rgb(91, 52, 175);
/* oklch */ color: oklch(44.7% 0.184 291.8);
Tailwind
colors: {
  custom: {
    50: '#916fc8',
    500: '#5b34af',
    950: '#000000',
  },
}
SCSS
$custom: #5b34af;
$custom-light: #916fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34af",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 259.024,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44706,
    "c": 0.18357,
    "h": 291.8
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#5B34AF
secondary
#ADC47B
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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