#5B34B2#5B34B2

#5B34B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.187 H 291.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5B34B2
RGBrgb(91, 52, 178)
HSLhsl(259, 55%, 45%)
HSVhsv(259, 71%, 70%)
CMYKcmyk(48.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(33.76, 46.88, -60.85)
CIE-LCHlch(33.76, 76.81, 307.61°)
OKLaboklab(44.96% 0.0675 -0.1745)
OKLCHoklch(44.96% 0.187 291.2)
XYZxyz(13.5760, 7.8940, 42.9192)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34B2 #8BB234
analogous
#344CB2 #5B34B2 #9A34B2
triadic
#5B34B2 #B25B34 #34B25B
tetradic
#5B34B2 #B2344C #8BB234 #34B29A
square
#5B34B2 #B2344C #8BB234 #34B29A
split-complementary
#5B34B2 #B29A34 #4CB234
monochromatic
#2B1853 #432683 #5B34B2 #7B56CE #A085DB

Accessibility & contrast

On white

8.14
#5B34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34B2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34B2#FFFFFF#000000##FFFFFF
##5B34B21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#3F546F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b34b2;
/* rgb */ color: rgb(91, 52, 178);
/* oklch */ color: oklch(45.0% 0.187 291.2);
Tailwind
colors: {
  custom: {
    50: '#916fca',
    500: '#5b34b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b34b2;
$custom-light: #916fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34b2",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 258.571,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44963,
    "c": 0.18713,
    "h": 291.2
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#5B34B2
secondary
#AFC57D
accent
#DE4AB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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