#5B2DB1#5B2DB1

#5B2DB1 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.194 H 292.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5B2DB1
RGBrgb(91, 45, 177)
HSLhsl(261, 59%, 44%)
HSVhsv(261, 75%, 69%)
CMYKcmyk(48.6%, 74.6%, 0%, 30.6%)
CIE-LABlab(32.42, 50.11, -62.44)
CIE-LCHlch(32.42, 80.06, 308.75°)
OKLaboklab(43.99% 0.074 -0.1791)
OKLCHoklch(43.99% 0.194 292.4)
XYZxyz(13.1864, 7.2748, 42.2958)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DB1 #83B12D
analogous
#2D41B1 #5B2DB1 #9D2DB1
triadic
#5B2DB1 #B15B2D #2DB15B
tetradic
#5B2DB1 #B12D41 #83B12D #2DB19D
square
#5B2DB1 #B12D41 #83B12D #2DB19D
split-complementary
#5B2DB1 #B19D2D #41B12D
monochromatic
#29144F #422180 #5B2DB1 #794AD1 #9D7BDD

Accessibility & contrast

On white

8.55
#5B2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DB1
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DB1#FFFFFF#000000##FFFFFF
##5B2DB11.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#40506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2db1;
/* rgb */ color: rgb(91, 45, 177);
/* oklch */ color: oklch(44.0% 0.194 292.4);
Tailwind
colors: {
  custom: {
    50: '#926bc9',
    500: '#5b2db1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2db1;
$custom-light: #926bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2db1",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 260.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.19382,
    "h": 292.4
  },
  "luminance": 0.07275
}

Semantic roles & 50–950 ramp

primary
#5B2DB1
secondary
#A9C674
accent
#E345AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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