#5B45D8#5B45D8

#5B45D8 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.6% C 0.213 H 282.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5B45D8
RGBrgb(91, 69, 216)
HSLhsl(249, 65%, 56%)
HSVhsv(249, 68%, 85%)
CMYKcmyk(57.9%, 68.1%, 0%, 15.3%)
CIE-LABlab(40.31, 48.79, -72.32)
CIE-LCHlch(40.31, 87.24, 304.01°)
OKLaboklab(50.64% 0.0461 -0.2082)
OKLCHoklch(50.64% 0.213 282.5)
XYZxyz(18.8333, 11.4370, 66.1676)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45D8 #C2D845
analogous
#4578D8 #5B45D8 #A545D8
triadic
#5B45D8 #D85B45 #45D85B
tetradic
#5B45D8 #D84578 #C2D845 #45D8A5
square
#5B45D8 #D84578 #C2D845 #45D8A5
split-complementary
#5B45D8 #D8A545 #78D845
monochromatic
#2C1C86 #3D27B9 #5B45D8 #8878E3 #B4AAED

Accessibility & contrast

On white

6.39
#5B45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5B45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45D8
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45D8#FFFFFF#000000##FFFFFF
##5B45D81.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#0D6C89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b45d8;
/* rgb */ color: rgb(91, 69, 216);
/* oklch */ color: oklch(50.6% 0.213 282.5);
Tailwind
colors: {
  custom: {
    50: '#967be5',
    500: '#5b45d8',
    950: '#000000',
  },
}
SCSS
$custom: #5b45d8;
$custom-light: #967be5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45d8",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 248.98,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50636,
    "c": 0.21326,
    "h": 282.5
  },
  "luminance": 0.11438
}

Semantic roles & 50–950 ramp

primary
#5B45D8
secondary
#D2DB9E
accent
#E840CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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