#5B2A9C#5B2A9C

#5B2A9C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.173 H 298.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5B2A9C
RGBrgb(91, 42, 156)
HSLhsl(266, 58%, 39%)
HSVhsv(266, 73%, 61%)
CMYKcmyk(41.7%, 73.1%, 0%, 38.8%)
CIE-LABlab(30.11, 45.96, -53.57)
CIE-LCHlch(30.11, 70.59, 310.63°)
OKLaboklab(41.8% 0.0816 -0.1531)
OKLCHoklch(41.8% 0.173 298)
XYZxyz(11.1416, 6.2802, 32.0712)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A9C #6B9C2A
analogous
#2A329C #5B2A9C #942A9C
triadic
#5B2A9C #9C5B2A #2A9C5B
tetradic
#5B2A9C #9C2A32 #6B9C2A #2A9C94
square
#5B2A9C #9C2A32 #6B9C2A #2A9C94
split-complementary
#5B2A9C #9C942A #329C2A
monochromatic
#23103C #3F1D6C #5B2A9C #7739CA #996AD7

Accessibility & contrast

On white

9.31
#5B2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A9C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A9C#FFFFFF#000000##FFFFFF
##5B2A9C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4B4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2a9c;
/* rgb */ color: rgb(91, 42, 156);
/* oklch */ color: oklch(41.8% 0.173 298.0);
Tailwind
colors: {
  custom: {
    50: '#8f68ba',
    500: '#5b2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a9c;
$custom-light: #8f68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a9c",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 265.789,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41797,
    "c": 0.17347,
    "h": 298
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#5B2A9C
secondary
#97BD65
accent
#E1479F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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