#5B2EA2#5B2EA2

#5B2EA2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.176 H 295.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA2
RGBrgb(91, 46, 162)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(43.8%, 71.6%, 0%, 36.5%)
CIE-LABlab(31.32, 45.56, -55.25)
CIE-LCHlch(31.32, 71.61, 309.51°)
OKLaboklab(42.81% 0.0764 -0.158)
OKLCHoklch(42.81% 0.176 295.8)
XYZxyz(11.8112, 6.7865, 34.8630)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA2 #75A22E
analogous
#2E3BA2 #5B2EA2 #952EA2
triadic
#5B2EA2 #A25B2E #2EA25B
tetradic
#5B2EA2 #A22E3B #75A22E #2EA295
square
#5B2EA2 #A22E3B #75A22E #2EA295
split-complementary
#5B2EA2 #A2952E #3BA22E
monochromatic
#251343 #402072 #5B2EA2 #7843CA #9A73D7

Accessibility & contrast

On white

8.91
#5B2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2EA2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA2#FFFFFF#000000##FFFFFF
##5B2EA21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#484B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ea2;
/* rgb */ color: rgb(91, 46, 162);
/* oklch */ color: oklch(42.8% 0.176 295.8);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5b2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea2;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea2",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 263.276,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.17554,
    "h": 295.8
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#5B2EA2
secondary
#9FBF6D
accent
#DF49A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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