#5B2EAC#5B2EAC

#5B2EAC is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.187 H 293.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2EAC
RGBrgb(91, 46, 172)
HSLhsl(261, 58%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(47.1%, 73.3%, 0%, 32.5%)
CIE-LABlab(32.16, 48.27, -59.88)
CIE-LCHlch(32.16, 76.92, 308.87°)
OKLaboklab(43.67% 0.0743 -0.1717)
OKLCHoklch(43.67% 0.187 293.4)
XYZxyz(12.7357, 7.1563, 39.7320)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EAC #7FAC2E
analogous
#2E40AC #5B2EAC #9A2EAC
triadic
#5B2EAC #AC5B2E #2EAC5B
tetradic
#5B2EAC #AC2E40 #7FAC2E #2EAC9A
square
#5B2EAC #AC2E40 #7FAC2E #2EAC9A
split-complementary
#5B2EAC #AC9A2E #40AC2E
monochromatic
#28144B #41217C #5B2EAC #7949CE #9C79DB

Accessibility & contrast

On white

8.64
#5B2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EAC
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EAC#FFFFFF#000000##FFFFFF
##5B2EAC1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#434F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2eac;
/* rgb */ color: rgb(91, 46, 172);
/* oklch */ color: oklch(43.7% 0.187 293.4);
Tailwind
colors: {
  custom: {
    50: '#916bc6',
    500: '#5b2eac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eac;
$custom-light: #916bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eac",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 261.429,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.18705,
    "h": 293.4
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#5B2EAC
secondary
#A6C372
accent
#E147AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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