#5B2EAA#5B2EAA

#5B2EAA is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.185 H 293.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5B2EAA
RGBrgb(91, 46, 170)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 73%, 67%)
CMYKcmyk(46.5%, 72.9%, 0%, 33.3%)
CIE-LABlab(31.99, 47.73, -58.97)
CIE-LCHlch(31.99, 75.86, 308.99°)
OKLaboklab(43.49% 0.0747 -0.169)
OKLCHoklch(43.49% 0.185 293.9)
XYZxyz(12.5451, 7.0800, 38.7280)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EAA #7DAA2E
analogous
#2E3FAA #5B2EAA #992EAA
triadic
#5B2EAA #AA5B2E #2EAA5B
tetradic
#5B2EAA #AA2E3F #7DAA2E #2EAA99
square
#5B2EAA #AA2E3F #7DAA2E #2EAA99
split-complementary
#5B2EAA #AA992E #3FAA2E
monochromatic
#27144A #41217A #5B2EAA #7848CD #9C78DA

Accessibility & contrast

On white

8.69
#5B2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EAA
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EAA#FFFFFF#000000##FFFFFF
##5B2EAA1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2eaa;
/* rgb */ color: rgb(91, 46, 170);
/* oklch */ color: oklch(43.5% 0.185 293.9);
Tailwind
colors: {
  custom: {
    50: '#916bc4',
    500: '#5b2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eaa;
$custom-light: #916bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eaa",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 261.774,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43494,
    "c": 0.18475,
    "h": 293.9
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#5B2EAA
secondary
#A5C371
accent
#E147A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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