#5B2A97#5B2A97

#5B2A97 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.168 H 299.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B2A97
RGBrgb(91, 42, 151)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 59%)
CMYKcmyk(39.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.70, 44.65, -51.19)
CIE-LCHlch(29.70, 67.92, 311.10°)
OKLaboklab(41.38% 0.0826 -0.1461)
OKLCHoklch(41.38% 0.168 299.5)
XYZxyz(10.7269, 6.1143, 29.8872)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A97 #66972A
analogous
#2A3097 #5B2A97 #912A97
triadic
#5B2A97 #975B2A #2A975B
tetradic
#5B2A97 #972A30 #66972A #2A9791
square
#5B2A97 #972A30 #66972A #2A9791
split-complementary
#5B2A97 #97912A #30972A
monochromatic
#210F37 #3E1D67 #5B2A97 #7837C7 #9867D5

Accessibility & contrast

On white

9.45
#5B2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2A97
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A97#FFFFFF#000000##FFFFFF
##5B2A971.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4D455D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2a97;
/* rgb */ color: rgb(91, 42, 151);
/* oklch */ color: oklch(41.4% 0.168 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5b2a97',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a97;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a97",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 266.972,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.1678,
    "h": 299.5
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#5B2A97
secondary
#93BB62
accent
#E0489C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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