#5B2997#5B2997

#5B2997 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 299.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5B2997
RGBrgb(91, 41, 151)
HSLhsl(267, 57%, 38%)
HSVhsv(267, 73%, 59%)
CMYKcmyk(39.7%, 72.8%, 0%, 40.8%)
CIE-LABlab(29.52, 45.14, -51.47)
CIE-LCHlch(29.52, 68.46, 311.25°)
OKLaboklab(41.25% 0.0836 -0.1469)
OKLCHoklch(41.25% 0.169 299.6)
XYZxyz(10.6918, 6.0443, 29.8755)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2997 #659729
analogous
#292E97 #5B2997 #922997
triadic
#5B2997 #975B29 #29975B
tetradic
#5B2997 #97292E #659729 #299792
square
#5B2997 #97292E #659729 #299792
split-complementary
#5B2997 #979229 #2E9729
monochromatic
#210F37 #3E1C67 #5B2997 #7836C7 #9865D5

Accessibility & contrast

On white

9.51
#5B2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2997
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2997#FFFFFF#000000##FFFFFF
##5B29971.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2997;
/* rgb */ color: rgb(91, 41, 151);
/* oklch */ color: oklch(41.3% 0.169 299.6);
Tailwind
colors: {
  custom: {
    50: '#8f67b6',
    500: '#5b2997',
    950: '#000000',
  },
}
SCSS
$custom: #5b2997;
$custom-light: #8f67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2997",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 267.273,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.16902,
    "h": 299.6
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#5B2997
secondary
#92BB61
accent
#E1479B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2997

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

Preview Lab → · Contrast checker → · Palette generator →

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