#5B45D9#5B45D9

#5B45D9 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.7% C 0.214 H 282.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5B45D9
RGBrgb(91, 69, 217)
HSLhsl(249, 66%, 56%)
HSVhsv(249, 68%, 85%)
CMYKcmyk(58.1%, 68.2%, 0%, 14.9%)
CIE-LABlab(40.39, 49.09, -72.76)
CIE-LCHlch(40.39, 87.77, 304.01°)
OKLaboklab(50.72% 0.0459 -0.2095)
OKLCHoklch(50.72% 0.214 282.4)
XYZxyz(18.9630, 11.4889, 66.8505)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45D9 #C3D945
analogous
#4579D9 #5B45D9 #A545D9
triadic
#5B45D9 #D95B45 #45D95B
tetradic
#5B45D9 #D94579 #C3D945 #45D9A5
square
#5B45D9 #D94579 #C3D945 #45D9A5
split-complementary
#5B45D9 #D9A545 #79D945
monochromatic
#2C1C88 #3C26BB #5B45D9 #8878E3 #B5ABEE

Accessibility & contrast

On white

6.37
#5B45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5B45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45D9
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45D9#FFFFFF#000000##FFFFFF
##5B45D91.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#096C8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b45d9;
/* rgb */ color: rgb(91, 69, 217);
/* oklch */ color: oklch(50.7% 0.214 282.4);
Tailwind
colors: {
  custom: {
    50: '#967be6',
    500: '#5b45d9',
    950: '#000000',
  },
}
SCSS
$custom: #5b45d9;
$custom-light: #967be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45d9",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 248.919,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50723,
    "c": 0.21447,
    "h": 282.4
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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