#5B2AA3#5B2AA3

#5B2AA3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.181 H 296.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA3
RGBrgb(91, 42, 163)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.2%, 74.2%, 0%, 36.1%)
CIE-LABlab(30.70, 47.80, -56.86)
CIE-LCHlch(30.70, 74.28, 310.06°)
OKLaboklab(42.4% 0.08 -0.1627)
OKLCHoklch(42.4% 0.181 296.2)
XYZxyz(11.7515, 6.5242, 35.2834)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA3 #72A32A
analogous
#2A35A3 #5B2AA3 #982AA3
triadic
#5B2AA3 #A35B2A #2AA35B
tetradic
#5B2AA3 #A32A35 #72A32A #2AA398
square
#5B2AA3 #A32A35 #72A32A #2AA398
split-complementary
#5B2AA3 #A3982A #35A32A
monochromatic
#251142 #401D72 #5B2AA3 #773DCD #996EDA

Accessibility & contrast

On white

9.11
#5B2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA3
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA3#FFFFFF#000000##FFFFFF
##5B2AA31.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#484964
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2aa3;
/* rgb */ color: rgb(91, 42, 163);
/* oklch */ color: oklch(42.4% 0.181 296.2);
Tailwind
colors: {
  custom: {
    50: '#9068bf',
    500: '#5b2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa3;
$custom-light: #9068bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa3",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 264.298,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42397,
    "c": 0.18135,
    "h": 296.2
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#5B2AA3
secondary
#9DC068
accent
#E246A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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