#5B45D2#5B45D2

#5B45D2 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.1% C 0.206 H 283.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5B45D2
RGBrgb(91, 69, 210)
HSLhsl(249, 61%, 55%)
HSVhsv(249, 67%, 82%)
CMYKcmyk(56.7%, 67.1%, 0%, 17.6%)
CIE-LABlab(39.80, 46.98, -69.70)
CIE-LCHlch(39.80, 84.06, 303.98°)
OKLaboklab(50.12% 0.047 -0.2005)
OKLCHoklch(50.12% 0.206 283.2)
XYZxyz(18.0718, 11.1324, 62.1568)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45D2 #BCD245
analogous
#4575D2 #5B45D2 #A245D2
triadic
#5B45D2 #D25B45 #45D25B
tetradic
#5B45D2 #D24575 #BCD245 #45D2A2
square
#5B45D2 #D24575 #BCD245 #45D2A2
split-complementary
#5B45D2 #D2A245 #75D245
monochromatic
#2D1F7E #3F2AAF #5B45D2 #8676DE #B2A8EA

Accessibility & contrast

On white

6.51
#5B45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5B45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45D2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45D2#FFFFFF#000000##FFFFFF
##5B45D21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#1C6986
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b45d2;
/* rgb */ color: rgb(91, 69, 210);
/* oklch */ color: oklch(50.1% 0.206 283.2);
Tailwind
colors: {
  custom: {
    50: '#957ae1',
    500: '#5b45d2',
    950: '#000000',
  },
}
SCSS
$custom: #5b45d2;
$custom-light: #957ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45d2",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 249.362,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50118,
    "c": 0.20595,
    "h": 283.2
  },
  "luminance": 0.11134
}

Semantic roles & 50–950 ramp

primary
#5B45D2
secondary
#CED79C
accent
#E444CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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