#5B45CD#5B45CD

#5B45CD is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.7% C 0.200 H 283.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5B45CD
RGBrgb(91, 69, 205)
HSLhsl(250, 58%, 54%)
HSVhsv(250, 66%, 80%)
CMYKcmyk(55.6%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.39, 45.48, -67.49)
CIE-LCHlch(39.39, 81.38, 303.97°)
OKLaboklab(49.69% 0.0476 -0.194)
OKLCHoklch(49.69% 0.2 283.8)
XYZxyz(17.4586, 10.8871, 58.9272)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45CD #B7CD45
analogous
#4573CD #5B45CD #9F45CD
triadic
#5B45CD #CD5B45 #45CD5B
tetradic
#5B45CD #CD4573 #B7CD45 #45CD9F
square
#5B45CD #CD4573 #B7CD45 #45CD9F
split-complementary
#5B45CD #CD9F45 #73CD45
monochromatic
#2E2077 #412DA8 #5B45CD #8675DA #B0A5E7

Accessibility & contrast

On white

6.61
#5B45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5B45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45CD
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45CD#FFFFFF#000000##FFFFFF
##5B45CD1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#246883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b45cd;
/* rgb */ color: rgb(91, 69, 205);
/* oklch */ color: oklch(49.7% 0.200 283.8);
Tailwind
colors: {
  custom: {
    50: '#947add',
    500: '#5b45cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b45cd;
$custom-light: #947add;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45cd",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 249.706,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49693,
    "c": 0.1998,
    "h": 283.8
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#5B45CD
secondary
#CBD49A
accent
#E147C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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