#5B2FA1#5B2FA1

#5B2FA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.173 H 295.9°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA1
RGBrgb(91, 47, 161)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 63%)
CMYKcmyk(43.5%, 70.8%, 0%, 36.9%)
CIE-LABlab(31.42, 44.78, -54.48)
CIE-LCHlch(31.42, 70.52, 309.42°)
OKLaboklab(42.86% 0.0756 -0.1558)
OKLCHoklch(42.86% 0.173 295.9)
XYZxyz(11.7622, 6.8301, 34.4099)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA1 #75A12F
analogous
#2F3CA1 #5B2FA1 #942FA1
triadic
#5B2FA1 #A15B2F #2FA15B
tetradic
#5B2FA1 #A12F3C #75A12F #2FA194
square
#5B2FA1 #A12F3C #75A12F #2FA194
split-complementary
#5B2FA1 #A1942F #3CA12F
monochromatic
#251342 #402172 #5B2FA1 #7845C9 #9A74D6

Accessibility & contrast

On white

8.88
#5B2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA1
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA1#FFFFFF#000000##FFFFFF
##5B2FA11.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#484B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2fa1;
/* rgb */ color: rgb(91, 47, 161);
/* oklch */ color: oklch(42.9% 0.173 295.9);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5b2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa1;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa1",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 263.158,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.17315,
    "h": 295.9
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#5B2FA1
secondary
#9FBE6E
accent
#DE4AA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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