#5B2EA3#5B2EA3

#5B2EA3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.177 H 295.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA3
RGBrgb(91, 46, 163)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(44.2%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.40, 45.83, -55.72)
CIE-LCHlch(31.40, 72.14, 309.44°)
OKLaboklab(42.89% 0.0762 -0.1594)
OKLCHoklch(42.89% 0.177 295.5)
XYZxyz(11.9005, 6.8222, 35.3330)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA3 #76A32E
analogous
#2E3BA3 #5B2EA3 #952EA3
triadic
#5B2EA3 #A35B2E #2EA35B
tetradic
#5B2EA3 #A32E3B #76A32E #2EA395
square
#5B2EA3 #A32E3B #76A32E #2EA395
split-complementary
#5B2EA3 #A3952E #3BA32E
monochromatic
#261344 #402173 #5B2EA3 #7844CA #9A74D8

Accessibility & contrast

On white

8.88
#5B2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA3#FFFFFF#000000##FFFFFF
##5B2EA31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#474B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ea3;
/* rgb */ color: rgb(91, 46, 163);
/* oklch */ color: oklch(42.9% 0.177 295.5);
Tailwind
colors: {
  custom: {
    50: '#906bbf',
    500: '#5b2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea3;
$custom-light: #906bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea3",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 263.077,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42893,
    "c": 0.17669,
    "h": 295.5
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#5B2EA3
secondary
#A0BF6D
accent
#DF49A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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