#5B2EA9#5B2EA9

#5B2EA9 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.184 H 294.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA9
RGBrgb(91, 46, 169)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 73%, 66%)
CMYKcmyk(46.2%, 72.8%, 0%, 33.7%)
CIE-LABlab(31.90, 47.46, -58.51)
CIE-LCHlch(31.90, 75.33, 309.05°)
OKLaboklab(43.41% 0.075 -0.1676)
OKLCHoklch(43.41% 0.184 294.1)
XYZxyz(12.4509, 7.0423, 38.2317)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA9 #7CA92E
analogous
#2E3FA9 #5B2EA9 #982EA9
triadic
#5B2EA9 #A95B2E #2EA95B
tetradic
#5B2EA9 #A92E3F #7CA92E #2EA998
square
#5B2EA9 #A92E3F #7CA92E #2EA998
split-complementary
#5B2EA9 #A9982E #3FA92E
monochromatic
#271449 #412179 #5B2EA9 #7847CD #9B77DA

Accessibility & contrast

On white

8.72
#5B2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA9
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA9#FFFFFF#000000##FFFFFF
##5B2EA91.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2ea9;
/* rgb */ color: rgb(91, 46, 169);
/* oklch */ color: oklch(43.4% 0.184 294.1);
Tailwind
colors: {
  custom: {
    50: '#916bc4',
    500: '#5b2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea9;
$custom-light: #916bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea9",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 261.951,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43407,
    "c": 0.18361,
    "h": 294.1
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#5B2EA9
secondary
#A4C271
accent
#E047A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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