#5B2AA7#5B2AA7

#5B2AA7 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.186 H 295.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA7
RGBrgb(91, 42, 167)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(45.5%, 74.9%, 0%, 34.5%)
CIE-LABlab(31.04, 48.86, -58.71)
CIE-LCHlch(31.04, 76.38, 309.77°)
OKLaboklab(42.75% 0.0791 -0.1682)
OKLCHoklch(42.75% 0.186 295.2)
XYZxyz(12.1155, 6.6698, 37.2008)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA7 #76A72A
analogous
#2A37A7 #5B2AA7 #992AA7
triadic
#5B2AA7 #A75B2A #2AA75B
tetradic
#5B2AA7 #A72A37 #76A72A #2AA799
square
#5B2AA7 #A72A37 #76A72A #2AA799
split-complementary
#5B2AA7 #A7992A #37A72A
monochromatic
#261145 #401E76 #5B2AA7 #783FCF #9A70DB

Accessibility & contrast

On white

9.00
#5B2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA7
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA7#FFFFFF#000000##FFFFFF
##5B2AA71.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#464B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2aa7;
/* rgb */ color: rgb(91, 42, 167);
/* oklch */ color: oklch(42.7% 0.186 295.2);
Tailwind
colors: {
  custom: {
    50: '#9169c2',
    500: '#5b2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa7;
$custom-light: #9169c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa7",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 263.52,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42747,
    "c": 0.18584,
    "h": 295.2
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#5B2AA7
secondary
#A0C26B
accent
#E345A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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