#5B2EA1#5B2EA1

#5B2EA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.174 H 296.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA1
RGBrgb(91, 46, 161)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 71%, 63%)
CMYKcmyk(43.5%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.23, 45.29, -54.78)
CIE-LCHlch(31.23, 71.08, 309.59°)
OKLaboklab(42.72% 0.0766 -0.1567)
OKLCHoklch(42.72% 0.174 296.1)
XYZxyz(11.7227, 6.7511, 34.3968)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA1 #74A12E
analogous
#2E3AA1 #5B2EA1 #942EA1
triadic
#5B2EA1 #A15B2E #2EA15B
tetradic
#5B2EA1 #A12E3A #74A12E #2EA194
square
#5B2EA1 #A12E3A #74A12E #2EA194
split-complementary
#5B2EA1 #A1942E #3AA12E
monochromatic
#251342 #402071 #5B2EA1 #7743C9 #9A73D7

Accessibility & contrast

On white

8.94
#5B2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA1
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA1#FFFFFF#000000##FFFFFF
##5B2EA11.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#484B64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ea1;
/* rgb */ color: rgb(91, 46, 161);
/* oklch */ color: oklch(42.7% 0.174 296.1);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5b2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea1;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea1",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 263.478,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42724,
    "c": 0.17437,
    "h": 296.1
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#5B2EA1
secondary
#9EBE6C
accent
#DF49A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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