#5B2186#5B2186

#5B2186 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.160 H 306.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5B2186
RGBrgb(91, 33, 134)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 53%)
CMYKcmyk(32.1%, 75.4%, 0%, 47.5%)
CIE-LABlab(26.83, 44.63, -45.33)
CIE-LCHlch(26.83, 63.62, 314.55°)
OKLaboklab(38.92% 0.0951 -0.1288)
OKLCHoklch(38.92% 0.16 306.4)
XYZxyz(9.1604, 5.0332, 23.0386)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2186 #4C8621
analogous
#282186 #5B2186 #86217F
triadic
#5B2186 #865B21 #21865B
tetradic
#5B2186 #862821 #4C8621 #217F86
square
#5B2186 #862821 #4C8621 #217F86
split-complementary
#5B2186 #7F8621 #218628
monochromatic
#180924 #3A1555 #5B2186 #7C2DB7 #9B4ED3

Accessibility & contrast

On white

10.47
#5B2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2186
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2186#FFFFFF#000000##FFFFFF
##5B21861.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#533952
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2186;
/* rgb */ color: rgb(91, 33, 134);
/* oklch */ color: oklch(38.9% 0.160 306.4);
Tailwind
colors: {
  custom: {
    50: '#8e62aa',
    500: '#5b2186',
    950: '#000000',
  },
}
SCSS
$custom: #5b2186;
$custom-light: #8e62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2186",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 274.455,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.16011,
    "h": 306.4
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#5B2186
secondary
#7AB74C
accent
#E44488
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2186

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

Preview Lab → · Contrast checker → · Palette generator →

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