#5B2897#5B2897

#5B2897 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.170 H 299.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5B2897
RGBrgb(91, 40, 151)
HSLhsl(268, 58%, 37%)
HSVhsv(268, 74%, 59%)
CMYKcmyk(39.7%, 73.5%, 0%, 40.8%)
CIE-LABlab(29.35, 45.63, -51.75)
CIE-LCHlch(29.35, 68.99, 311.40°)
OKLaboklab(41.13% 0.0846 -0.1477)
OKLCHoklch(41.13% 0.17 299.8)
XYZxyz(10.6577, 5.9760, 29.8641)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2897 #649728
analogous
#282C97 #5B2897 #932897
triadic
#5B2897 #975B28 #28975B
tetradic
#5B2897 #97282C #649728 #289793
square
#5B2897 #97282C #649728 #289793
split-complementary
#5B2897 #979328 #2C9728
monochromatic
#210E36 #3E1B67 #5B2897 #7835C7 #9864D6

Accessibility & contrast

On white

9.57
#5B2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2897
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2897#FFFFFF#000000##FFFFFF
##5B28971.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2897;
/* rgb */ color: rgb(91, 40, 151);
/* oklch */ color: oklch(41.1% 0.170 299.8);
Tailwind
colors: {
  custom: {
    50: '#8f67b6',
    500: '#5b2897',
    950: '#000000',
  },
}
SCSS
$custom: #5b2897;
$custom-light: #8f67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2897",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 267.568,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41133,
    "c": 0.17024,
    "h": 299.8
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#5B2897
secondary
#91BC5F
accent
#E1469A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2897

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

Preview Lab → · Contrast checker → · Palette generator →

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