#5B2DBE#5B2DBE

#5B2DBE is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.208 H 289.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5B2DBE
RGBrgb(91, 45, 190)
HSLhsl(259, 62%, 46%)
HSVhsv(259, 76%, 75%)
CMYKcmyk(52.1%, 76.3%, 0%, 25.5%)
CIE-LABlab(33.60, 53.64, -68.21)
CIE-LCHlch(33.60, 86.78, 308.18°)
OKLaboklab(45.18% 0.0706 -0.1961)
OKLCHoklch(45.18% 0.208 289.8)
XYZxyz(14.5443, 7.8180, 49.4479)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DBE #90BE2D
analogous
#2D48BE #5B2DBE #A32DBE
triadic
#5B2DBE #BE5B2D #2DBE5B
tetradic
#5B2DBE #BE2D48 #90BE2D #2DBEA3
square
#5B2DBE #BE2D48 #90BE2D #2DBEA3
split-complementary
#5B2DBE #BEA32D #48BE2D
monochromatic
#2C165B #43218D #5B2DBE #7C52D6 #A184E2

Accessibility & contrast

On white

8.19
#5B2DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5B2DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DBE
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DBE#FFFFFF#000000##FFFFFF
##5B2DBE1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#365674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2dbe;
/* rgb */ color: rgb(91, 45, 190);
/* oklch */ color: oklch(45.2% 0.208 289.8);
Tailwind
colors: {
  custom: {
    50: '#946bd3',
    500: '#5b2dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b2dbe;
$custom-light: #946bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2dbe",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 259.034,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45175,
    "c": 0.20838,
    "h": 289.8
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#5B2DBE
secondary
#B2CB7C
accent
#E543B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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