#5B2ABC#5B2ABC

#5B2ABC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.209 H 290.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5B2ABC
RGBrgb(91, 42, 188)
HSLhsl(260, 63%, 45%)
HSVhsv(260, 78%, 74%)
CMYKcmyk(51.6%, 77.7%, 0%, 26.3%)
CIE-LABlab(32.94, 54.46, -68.12)
CIE-LCHlch(32.94, 87.21, 308.64°)
OKLaboklab(44.66% 0.0734 -0.1958)
OKLCHoklch(44.66% 0.209 290.5)
XYZxyz(14.2168, 7.5103, 48.2677)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2ABC #8BBC2A
analogous
#2A42BC #5B2ABC #A42ABC
triadic
#5B2ABC #BC5B2A #2ABC5B
tetradic
#5B2ABC #BC2A42 #8BBC2A #2ABCA4
square
#5B2ABC #BC2A42 #8BBC2A #2ABCA4
split-complementary
#5B2ABC #BCA42A #42BC2A
monochromatic
#2B1458 #431F8A #5B2ABC #7B4CD7 #A07EE2

Accessibility & contrast

On white

8.39
#5B2ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5B2ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2ABC
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2ABC#FFFFFF#000000##FFFFFF
##5B2ABC1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#385472
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2abc;
/* rgb */ color: rgb(91, 42, 188);
/* oklch */ color: oklch(44.7% 0.209 290.5);
Tailwind
colors: {
  custom: {
    50: '#946ad1',
    500: '#5b2abc',
    950: '#000000',
  },
}
SCSS
$custom: #5b2abc;
$custom-light: #946ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2abc",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 260.137,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.20906,
    "h": 290.5
  },
  "luminance": 0.07511
}

Semantic roles & 50–950 ramp

primary
#5B2ABC
secondary
#AFCB77
accent
#E741AF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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