#5B2E97#5B2E97

#5B2E97 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.163 H 298.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5B2E97
RGBrgb(91, 46, 151)
HSLhsl(266, 53%, 39%)
HSVhsv(266, 70%, 59%)
CMYKcmyk(39.7%, 69.5%, 0%, 40.8%)
CIE-LABlab(30.43, 42.61, -50.00)
CIE-LCHlch(30.43, 65.69, 310.44°)
OKLaboklab(41.9% 0.0783 -0.1426)
OKLCHoklch(41.9% 0.163 298.8)
XYZxyz(10.8759, 6.4124, 29.9369)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E97 #6A972E
analogous
#2E3697 #5B2E97 #8F2E97
triadic
#5B2E97 #975B2E #2E975B
tetradic
#5B2E97 #972E36 #6A972E #2E978F
square
#5B2E97 #972E36 #6A972E #2E978F
split-complementary
#5B2E97 #978F2E #36972E
monochromatic
#221139 #3F2068 #5B2E97 #783EC4 #986DD2

Accessibility & contrast

On white

9.20
#5B2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E97
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E97#FFFFFF#000000##FFFFFF
##5B2E971.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#4D475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2e97;
/* rgb */ color: rgb(91, 46, 151);
/* oklch */ color: oklch(41.9% 0.163 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ab6',
    500: '#5b2e97',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e97;
$custom-light: #8f6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e97",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 265.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.419,
    "c": 0.1627,
    "h": 298.8
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#5B2E97
secondary
#96BA67
accent
#DD4B9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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