#5B2284#5B2284

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

Color values

HEX#5B2284
RGBrgb(91, 34, 132)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 52%)
CMYKcmyk(31.1%, 74.2%, 0%, 48.2%)
CIE-LABlab(26.83, 43.70, -44.08)
CIE-LCHlch(26.83, 62.07, 314.75°)
OKLaboklab(38.87% 0.0944 -0.1251)
OKLCHoklch(38.87% 0.157 307)
XYZxyz(9.0504, 5.0343, 22.3202)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2284 #4B8422
analogous
#2A2284 #5B2284 #84227C
triadic
#5B2284 #845B22 #22845B
tetradic
#5B2284 #842A22 #4B8422 #227C84
square
#5B2284 #842A22 #4B8422 #227C84
split-complementary
#5B2284 #7C8422 #22842A
monochromatic
#180923 #391553 #5B2284 #7D2FB5 #9B4FD2

Accessibility & contrast

On white

10.46
#5B2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2284
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2284#FFFFFF#000000##FFFFFF
##5B22841.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#004082
Tritanopia (blue-blind)
#543951
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2284;
/* rgb */ color: rgb(91, 34, 132);
/* oklch */ color: oklch(38.9% 0.157 307.0);
Tailwind
colors: {
  custom: {
    50: '#8e63a8',
    500: '#5b2284',
    950: '#000000',
  },
}
SCSS
$custom: #5b2284;
$custom-light: #8e63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2284",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 274.898,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.15676,
    "h": 307
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#5B2284
secondary
#78B54D
accent
#E24687
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2284

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

Preview Lab → · Contrast checker → · Palette generator →

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