#5B2EA0#5B2EA0

#5B2EA0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.173 H 296.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA0
RGBrgb(91, 46, 160)
HSLhsl(264, 55%, 40%)
HSVhsv(264, 71%, 63%)
CMYKcmyk(43.1%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.15, 45.02, -54.30)
CIE-LCHlch(31.15, 70.54, 309.66°)
OKLaboklab(42.64% 0.0768 -0.1553)
OKLCHoklch(42.64% 0.173 296.3)
XYZxyz(11.6349, 6.7160, 33.9342)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA0 #73A02E
analogous
#2E3AA0 #5B2EA0 #942EA0
triadic
#5B2EA0 #A05B2E #2EA05B
tetradic
#5B2EA0 #A02E3A #73A02E #2EA094
square
#5B2EA0 #A02E3A #73A02E #2EA094
split-complementary
#5B2EA0 #A0942E #3AA02E
monochromatic
#251341 #402070 #5B2EA0 #7742C9 #9A72D6

Accessibility & contrast

On white

8.96
#5B2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA0
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA0#FFFFFF#000000##FFFFFF
##5B2EA01.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#494A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ea0;
/* rgb */ color: rgb(91, 46, 160);
/* oklch */ color: oklch(42.6% 0.173 296.3);
Tailwind
colors: {
  custom: {
    50: '#906abd',
    500: '#5b2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea0;
$custom-light: #906abd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea0",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 263.684,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.17322,
    "h": 296.3
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#5B2EA0
secondary
#9EBE6C
accent
#DF49A4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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