#5B2A96#5B2A96

#5B2A96 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.167 H 299.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B2A96
RGBrgb(91, 42, 150)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 59%)
CMYKcmyk(39.3%, 72%, 0%, 41.2%)
CIE-LABlab(29.62, 44.39, -50.71)
CIE-LCHlch(29.62, 67.39, 311.20°)
OKLaboklab(41.3% 0.0827 -0.1447)
OKLCHoklch(41.3% 0.167 299.8)
XYZxyz(10.6460, 6.0820, 29.4613)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A96 #65962A
analogous
#2A2F96 #5B2A96 #912A96
triadic
#5B2A96 #965B2A #2A965B
tetradic
#5B2A96 #962A2F #65962A #2A9691
square
#5B2A96 #962A2F #65962A #2A9691
split-complementary
#5B2A96 #96912A #2F962A
monochromatic
#210F36 #3E1D66 #5B2A96 #7837C6 #9866D4

Accessibility & contrast

On white

9.47
#5B2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A96
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A96#FFFFFF#000000##FFFFFF
##5B2A961.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#4D445D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2a96;
/* rgb */ color: rgb(91, 42, 150);
/* oklch */ color: oklch(41.3% 0.167 299.8);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5b2a96',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a96;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a96",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 267.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41296,
    "c": 0.16666,
    "h": 299.8
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#5B2A96
secondary
#92BA61
accent
#E0489B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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