#5B2797#5B2797

#5B2797 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.171 H 299.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5B2797
RGBrgb(91, 39, 151)
HSLhsl(268, 59%, 37%)
HSVhsv(268, 74%, 59%)
CMYKcmyk(39.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(29.18, 46.10, -52.03)
CIE-LCHlch(29.18, 69.52, 311.55°)
OKLaboklab(41.01% 0.0856 -0.1485)
OKLCHoklch(41.01% 0.171 299.9)
XYZxyz(10.6244, 5.9094, 29.8530)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2797 #639727
analogous
#272B97 #5B2797 #932797
triadic
#5B2797 #975B27 #27975B
tetradic
#5B2797 #97272B #639727 #279793
square
#5B2797 #97272B #639727 #279793
split-complementary
#5B2797 #979327 #2B9727
monochromatic
#200E36 #3E1A66 #5B2797 #7834C8 #9862D6

Accessibility & contrast

On white

9.62
#5B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2797
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2797#FFFFFF#000000##FFFFFF
##5B27971.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#4D435D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2797;
/* rgb */ color: rgb(91, 39, 151);
/* oklch */ color: oklch(41.0% 0.171 299.9);
Tailwind
colors: {
  custom: {
    50: '#8f66b6',
    500: '#5b2797',
    950: '#000000',
  },
}
SCSS
$custom: #5b2797;
$custom-light: #8f66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2797",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 267.857,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41013,
    "c": 0.17142,
    "h": 299.9
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#5B2797
secondary
#90BC5E
accent
#E24699
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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