#5B45DC#5B45DC

#5B45DC is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 51.0% C 0.218 H 282.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5B45DC
RGBrgb(91, 69, 220)
HSLhsl(249, 68%, 57%)
HSVhsv(249, 69%, 86%)
CMYKcmyk(58.6%, 68.6%, 0%, 13.7%)
CIE-LABlab(40.65, 50.00, -74.06)
CIE-LCHlch(40.65, 89.35, 304.02°)
OKLaboklab(50.99% 0.0454 -0.2133)
OKLCHoklch(50.99% 0.218 282)
XYZxyz(19.3567, 11.6464, 68.9242)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45DC #C6DC45
analogous
#457BDC #5B45DC #A745DC
triadic
#5B45DC #DC5B45 #45DC5B
tetradic
#5B45DC #DC457B #C6DC45 #45DCA7
square
#5B45DC #DC457B #C6DC45 #45DCA7
split-complementary
#5B45DC #DCA745 #7BDC45
monochromatic
#2B1A8C #3B24C0 #5B45DC #8879E6 #B6ACEF

Accessibility & contrast

On white

6.31
#5B45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5B45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45DC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45DC#FFFFFF#000000##FFFFFF
##5B45DC1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b45dc;
/* rgb */ color: rgb(91, 69, 220);
/* oklch */ color: oklch(51.0% 0.218 282.0);
Tailwind
colors: {
  custom: {
    50: '#977be8',
    500: '#5b45dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b45dc;
$custom-light: #977be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45dc",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 248.742,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.21808,
    "h": 282
  },
  "luminance": 0.11648
}

Semantic roles & 50–950 ramp

primary
#5B45DC
secondary
#D4DDA0
accent
#EB3DD2
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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