#5B2BAD#5B2BAD

#5B2BAD is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.191 H 293.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5B2BAD
RGBrgb(91, 43, 173)
HSLhsl(262, 60%, 42%)
HSVhsv(262, 75%, 68%)
CMYKcmyk(47.4%, 75.1%, 0%, 32.2%)
CIE-LABlab(31.74, 49.99, -61.18)
CIE-LCHlch(31.74, 79.00, 309.25°)
OKLaboklab(43.4% 0.0767 -0.1754)
OKLCHoklch(43.4% 0.191 293.6)
XYZxyz(12.7190, 6.9686, 40.2020)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BAD #7DAD2B
analogous
#2B3CAD #5B2BAD #9C2BAD
triadic
#5B2BAD #AD5B2B #2BAD5B
tetradic
#5B2BAD #AD2B3C #7DAD2B #2BAD9C
square
#5B2BAD #AD2B3C #7DAD2B #2BAD9C
split-complementary
#5B2BAD #AD9C2B #3CAD2B
monochromatic
#27134B #411F7C #5B2BAD #7845D1 #9C76DD

Accessibility & contrast

On white

8.77
#5B2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BAD
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BAD#FFFFFF#000000##FFFFFF
##5B2BAD1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#424E6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2bad;
/* rgb */ color: rgb(91, 43, 173);
/* oklch */ color: oklch(43.4% 0.191 293.6);
Tailwind
colors: {
  custom: {
    50: '#9169c6',
    500: '#5b2bad',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bad;
$custom-light: #9169c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bad",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 262.154,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43396,
    "c": 0.19146,
    "h": 293.6
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#5B2BAD
secondary
#A5C46F
accent
#E344A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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