#5B2BB3#5B2BB3

#5B2BB3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.198 H 292.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5B2BB3
RGBrgb(91, 43, 179)
HSLhsl(261, 61%, 44%)
HSVhsv(261, 76%, 70%)
CMYKcmyk(49.2%, 76%, 0%, 29.8%)
CIE-LABlab(32.27, 51.60, -63.88)
CIE-LCHlch(32.27, 82.12, 308.93°)
OKLaboklab(43.94% 0.0751 -0.1834)
OKLCHoklch(43.94% 0.198 292.3)
XYZxyz(13.3127, 7.2061, 43.3286)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BB3 #83B32B
analogous
#2B3FB3 #5B2BB3 #9F2BB3
triadic
#5B2BB3 #B35B2B #2BB35B
tetradic
#5B2BB3 #B32B3F #83B32B #2BB39F
square
#5B2BB3 #B32B3F #83B32B #2BB39F
split-complementary
#5B2BB3 #B39F2B #3FB32B
monochromatic
#291350 #421F82 #5B2BB3 #7948D3 #9D79DF

Accessibility & contrast

On white

8.60
#5B2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BB3
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BB3#FFFFFF#000000##FFFFFF
##5B2BB31.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#3E506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2bb3;
/* rgb */ color: rgb(91, 43, 179);
/* oklch */ color: oklch(43.9% 0.198 292.3);
Tailwind
colors: {
  custom: {
    50: '#926acb',
    500: '#5b2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bb3;
$custom-light: #926acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bb3",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 261.176,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43937,
    "c": 0.19816,
    "h": 292.3
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#5B2BB3
secondary
#A9C773
accent
#E443AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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