#5B2FAA#5B2FAA

#5B2FAA is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.184 H 293.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2FAA
RGBrgb(91, 47, 170)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(46.5%, 72.4%, 0%, 33.3%)
CIE-LABlab(32.17, 47.23, -58.68)
CIE-LCHlch(32.17, 75.32, 308.83°)
OKLaboklab(43.62% 0.0738 -0.1681)
OKLCHoklch(43.62% 0.184 293.7)
XYZxyz(12.5846, 7.1591, 38.7412)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FAA #7EAA2F
analogous
#2F41AA #5B2FAA #982FAA
triadic
#5B2FAA #AA5B2F #2FAA5B
tetradic
#5B2FAA #AA2F41 #7EAA2F #2FAA98
square
#5B2FAA #AA2F41 #7EAA2F #2FAA98
split-complementary
#5B2FAA #AA982F #41AA2F
monochromatic
#28144A #41227A #5B2FAA #7849CD #9C79DA

Accessibility & contrast

On white

8.64
#5B2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FAA
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FAA#FFFFFF#000000##FFFFFF
##5B2FAA1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#444F69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2faa;
/* rgb */ color: rgb(91, 47, 170);
/* oklch */ color: oklch(43.6% 0.184 293.7);
Tailwind
colors: {
  custom: {
    50: '#916bc4',
    500: '#5b2faa',
    950: '#000000',
  },
}
SCSS
$custom: #5b2faa;
$custom-light: #916bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2faa",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 261.463,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4362,
    "c": 0.1836,
    "h": 293.7
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#5B2FAA
secondary
#A6C272
accent
#E048AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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