#5B2BAC#5B2BAC

#5B2BAC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.190 H 293.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2BAC
RGBrgb(91, 43, 172)
HSLhsl(262, 60%, 42%)
HSVhsv(262, 75%, 67%)
CMYKcmyk(47.1%, 75%, 0%, 32.5%)
CIE-LABlab(31.65, 49.72, -60.72)
CIE-LCHlch(31.65, 78.48, 309.31°)
OKLaboklab(43.31% 0.0769 -0.1741)
OKLCHoklch(43.31% 0.19 293.8)
XYZxyz(12.6226, 6.9301, 39.6943)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BAC #7CAC2B
analogous
#2B3BAC #5B2BAC #9C2BAC
triadic
#5B2BAC #AC5B2B #2BAC5B
tetradic
#5B2BAC #AC2B3B #7CAC2B #2BAC9C
square
#5B2BAC #AC2B3B #7CAC2B #2BAC9C
split-complementary
#5B2BAC #AC9C2B #3BAC2B
monochromatic
#27134A #411F7B #5B2BAC #7844D0 #9B75DC

Accessibility & contrast

On white

8.80
#5B2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2BAC
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BAC#FFFFFF#000000##FFFFFF
##5B2BAC1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#434D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2bac;
/* rgb */ color: rgb(91, 43, 172);
/* oklch */ color: oklch(43.3% 0.190 293.8);
Tailwind
colors: {
  custom: {
    50: '#9169c6',
    500: '#5b2bac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bac;
$custom-light: #9169c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bac",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 262.326,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43307,
    "c": 0.19034,
    "h": 293.8
  },
  "luminance": 0.0693
}

Semantic roles & 50–950 ramp

primary
#5B2BAC
secondary
#A4C46F
accent
#E345A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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