#5B2EA4#5B2EA4

#5B2EA4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.178 H 295.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA4
RGBrgb(91, 46, 164)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(44.5%, 72%, 0%, 35.7%)
CIE-LABlab(31.48, 46.10, -56.18)
CIE-LCHlch(31.48, 72.68, 309.37°)
OKLaboklab(42.98% 0.076 -0.1608)
OKLCHoklch(42.98% 0.178 295.3)
XYZxyz(11.9904, 6.8582, 35.8068)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA4 #77A42E
analogous
#2E3CA4 #5B2EA4 #962EA4
triadic
#5B2EA4 #A45B2E #2EA45B
tetradic
#5B2EA4 #A42E3C #77A42E #2EA496
square
#5B2EA4 #A42E3C #77A42E #2EA496
split-complementary
#5B2EA4 #A4962E #3CA42E
monochromatic
#261344 #402174 #5B2EA4 #7845CB #9A74D8

Accessibility & contrast

On white

8.85
#5B2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA4
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA4#FFFFFF#000000##FFFFFF
##5B2EA41.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#474C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ea4;
/* rgb */ color: rgb(91, 46, 164);
/* oklch */ color: oklch(43.0% 0.178 295.3);
Tailwind
colors: {
  custom: {
    50: '#906bc0',
    500: '#5b2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea4;
$custom-light: #906bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea4",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 262.881,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42978,
    "c": 0.17785,
    "h": 295.3
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#5B2EA4
secondary
#A1C06E
accent
#DF48A6
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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