#5B2097#5B2097

#5B2097 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.179 H 300.9°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5B2097
RGBrgb(91, 32, 151)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 79%, 59%)
CMYKcmyk(39.7%, 78.8%, 0%, 40.8%)
CIE-LABlab(28.09, 49.22, -53.81)
CIE-LCHlch(28.09, 72.92, 312.45°)
OKLaboklab(40.24% 0.092 -0.1537)
OKLCHoklch(40.24% 0.179 300.9)
XYZxyz(10.4154, 5.4915, 29.7834)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2097 #5C9720
analogous
#202097 #5B2097 #962097
triadic
#5B2097 #975B20 #20975B
tetradic
#5B2097 #972020 #5C9720 #209796
square
#5B2097 #972020 #5C9720 #209796
split-complementary
#5B2097 #979620 #209720
monochromatic
#1E0B32 #3D1564 #5B2097 #792BC9 #9856DB

Accessibility & contrast

On white

10.01
#5B2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2097
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2097#FFFFFF#000000##FFFFFF
##5B20971.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4D405B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2097;
/* rgb */ color: rgb(91, 32, 151);
/* oklch */ color: oklch(40.2% 0.179 300.9);
Tailwind
colors: {
  custom: {
    50: '#8f63b7',
    500: '#5b2097',
    950: '#000000',
  },
}
SCSS
$custom: #5b2097;
$custom-light: #8f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2097",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 269.748,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.17914,
    "h": 300.9
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#5B2097
secondary
#8ABF54
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2097

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

Preview Lab → · Contrast checker → · Palette generator →

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