#5B2A7D#5B2A7D

#5B2A7D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.138 H 308.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5B2A7D
RGBrgb(91, 42, 125)
HSLhsl(275, 50%, 33%)
HSVhsv(275, 66%, 49%)
CMYKcmyk(27.2%, 66.4%, 0%, 51%)
CIE-LABlab(27.74, 38.04, -38.21)
CIE-LCHlch(27.74, 53.92, 314.87°)
OKLaboklab(39.36% 0.0859 -0.108)
OKLCHoklch(39.36% 0.138 308.5)
XYZxyz(8.8433, 5.3609, 19.9670)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A7D #4C7D2A
analogous
#322A7D #5B2A7D #7D2A75
triadic
#5B2A7D #7D5B2A #2A7D5B
tetradic
#5B2A7D #7D322A #4C7D2A #2A757D
square
#5B2A7D #7D322A #4C7D2A #2A757D
split-complementary
#5B2A7D #757D2A #2A7D32
monochromatic
#180B21 #3A1B4F #5B2A7D #7C39AB #9B5AC8

Accessibility & contrast

On white

10.13
#5B2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A7D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A7D#FFFFFF#000000##FFFFFF
##5B2A7D1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#563B4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2a7d;
/* rgb */ color: rgb(91, 42, 125);
/* oklch */ color: oklch(39.4% 0.138 308.5);
Tailwind
colors: {
  custom: {
    50: '#8c67a3',
    500: '#5b2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a7d;
$custom-light: #8c67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a7d",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 275.422,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39356,
    "c": 0.13798,
    "h": 308.5
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#5B2A7D
secondary
#7AAD56
accent
#D94F87
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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