#5B45D5#5B45D5

#5B45D5 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.4% C 0.210 H 282.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5B45D5
RGBrgb(91, 69, 213)
HSLhsl(249, 63%, 55%)
HSVhsv(249, 68%, 84%)
CMYKcmyk(57.3%, 67.6%, 0%, 16.5%)
CIE-LABlab(40.05, 47.89, -71.02)
CIE-LCHlch(40.05, 85.65, 303.99°)
OKLaboklab(50.38% 0.0465 -0.2044)
OKLCHoklch(50.38% 0.21 282.8)
XYZxyz(18.4490, 11.2833, 64.1436)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45D5 #BFD545
analogous
#4577D5 #5B45D5 #A345D5
triadic
#5B45D5 #D55B45 #45D55B
tetradic
#5B45D5 #D54577 #BFD545 #45D5A3
square
#5B45D5 #D54577 #BFD545 #45D5A3
split-complementary
#5B45D5 #D5A345 #77D545
monochromatic
#2D1D82 #3E29B4 #5B45D5 #8777E0 #B3A9EC

Accessibility & contrast

On white

6.45
#5B45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5B45D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45D5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45D5#FFFFFF#000000##FFFFFF
##5B45D51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#166A87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b45d5;
/* rgb */ color: rgb(91, 69, 213);
/* oklch */ color: oklch(50.4% 0.210 282.8);
Tailwind
colors: {
  custom: {
    50: '#957ae3',
    500: '#5b45d5',
    950: '#000000',
  },
}
SCSS
$custom: #5b45d5;
$custom-light: #957ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45d5",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 249.167,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50376,
    "c": 0.20962,
    "h": 282.8
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

primary
#5B45D5
secondary
#D0D99D
accent
#E642CD
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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