#5B2FB8#5B2FB8

#5B2FB8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.200 H 290.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5B2FB8
RGBrgb(91, 47, 184)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 72%)
CMYKcmyk(50.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(33.39, 51.06, -65.02)
CIE-LCHlch(33.39, 82.67, 308.14°)
OKLaboklab(44.86% 0.0706 -0.1867)
OKLCHoklch(44.86% 0.2 290.7)
XYZxyz(13.9802, 7.7173, 46.0911)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FB8 #8CB82F
analogous
#2F48B8 #5B2FB8 #9F2FB8
triadic
#5B2FB8 #B85B2F #2FB85B
tetradic
#5B2FB8 #B82F48 #8CB82F #2FB89F
square
#5B2FB8 #B82F48 #8CB82F #2FB89F
split-complementary
#5B2FB8 #B89F2F #48B82F
monochromatic
#2B1657 #432387 #5B2FB8 #7B52D3 #A082DF

Accessibility & contrast

On white

8.26
#5B2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5B2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FB8
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FB8#FFFFFF#000000##FFFFFF
##5B2FB81.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#3B5471
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2fb8;
/* rgb */ color: rgb(91, 47, 184);
/* oklch */ color: oklch(44.9% 0.200 290.7);
Tailwind
colors: {
  custom: {
    50: '#936cce',
    500: '#5b2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fb8;
$custom-light: #936cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fb8",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 259.27,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44859,
    "c": 0.19962,
    "h": 290.7
  },
  "luminance": 0.07718
}

Semantic roles & 50–950 ramp

primary
#5B2FB8
secondary
#AFC87B
accent
#E245B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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