#5B2EA6#5B2EA6

#5B2EA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.180 H 294.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA6
RGBrgb(91, 46, 166)
HSLhsl(263, 57%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(45.2%, 72.3%, 0%, 34.9%)
CIE-LABlab(31.65, 46.64, -57.12)
CIE-LCHlch(31.65, 73.74, 309.24°)
OKLaboklab(43.15% 0.0756 -0.1635)
OKLCHoklch(43.15% 0.18 294.8)
XYZxyz(12.1725, 6.9310, 36.7655)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA6 #79A62E
analogous
#2E3DA6 #5B2EA6 #972EA6
triadic
#5B2EA6 #A65B2E #2EA65B
tetradic
#5B2EA6 #A62E3D #79A62E #2EA697
square
#5B2EA6 #A62E3D #79A62E #2EA697
split-complementary
#5B2EA6 #A6972E #3DA62E
monochromatic
#261346 #412176 #5B2EA6 #7846CC #9B76D9

Accessibility & contrast

On white

8.80
#5B2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA6#FFFFFF#000000##FFFFFF
##5B2EA61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#464D67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ea6;
/* rgb */ color: rgb(91, 46, 166);
/* oklch */ color: oklch(43.1% 0.180 294.8);
Tailwind
colors: {
  custom: {
    50: '#906bc1',
    500: '#5b2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea6;
$custom-light: #906bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea6",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 262.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43149,
    "c": 0.18016,
    "h": 294.8
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#5B2EA6
secondary
#A2C16F
accent
#E048A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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