#5B2DBC#5B2DBC

#5B2DBC is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.206 H 290.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5B2DBC
RGBrgb(91, 45, 188)
HSLhsl(259, 61%, 46%)
HSVhsv(259, 76%, 74%)
CMYKcmyk(51.6%, 76.1%, 0%, 26.3%)
CIE-LABlab(33.42, 53.10, -67.34)
CIE-LCHlch(33.42, 85.75, 308.26°)
OKLaboklab(44.99% 0.0711 -0.1935)
OKLCHoklch(44.99% 0.206 290.2)
XYZxyz(14.3273, 7.7311, 48.3045)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DBC #8EBC2D
analogous
#2D46BC #5B2DBC #A22DBC
triadic
#5B2DBC #BC5B2D #2DBC5B
tetradic
#5B2DBC #BC2D46 #8EBC2D #2DBCA2
square
#5B2DBC #BC2D46 #8EBC2D #2DBCA2
split-complementary
#5B2DBC #BCA22D #46BC2D
monochromatic
#2B1559 #43218B #5B2DBC #7B51D5 #A182E1

Accessibility & contrast

On white

8.25
#5B2DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5B2DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DBC
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DBC#FFFFFF#000000##FFFFFF
##5B2DBC1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#385573
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2dbc;
/* rgb */ color: rgb(91, 45, 188);
/* oklch */ color: oklch(45.0% 0.206 290.2);
Tailwind
colors: {
  custom: {
    50: '#936bd1',
    500: '#5b2dbc',
    950: '#000000',
  },
}
SCSS
$custom: #5b2dbc;
$custom-light: #936bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2dbc",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 259.301,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4499,
    "c": 0.20616,
    "h": 290.2
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#5B2DBC
secondary
#B1CA7B
accent
#E443B1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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