#5B45CE#5B45CE

#5B45CE is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.8% C 0.201 H 283.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5B45CE
RGBrgb(91, 69, 206)
HSLhsl(250, 58%, 54%)
HSVhsv(250, 67%, 81%)
CMYKcmyk(55.8%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.47, 45.78, -67.93)
CIE-LCHlch(39.47, 81.91, 303.98°)
OKLaboklab(49.78% 0.0475 -0.1953)
OKLCHoklch(49.78% 0.201 283.7)
XYZxyz(17.5797, 10.9356, 59.5650)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45CE #B8CE45
analogous
#4574CE #5B45CE #A045CE
triadic
#5B45CE #CE5B45 #45CE5B
tetradic
#5B45CE #CE4574 #B8CE45 #45CEA0
square
#5B45CE #CE4574 #B8CE45 #45CEA0
split-complementary
#5B45CE #CEA045 #74CE45
monochromatic
#2E2079 #412DA9 #5B45CE #8675DB #B0A6E8

Accessibility & contrast

On white

6.59
#5B45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5B45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45CE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45CE#FFFFFF#000000##FFFFFF
##5B45CE1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#236884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b45ce;
/* rgb */ color: rgb(91, 69, 206);
/* oklch */ color: oklch(49.8% 0.201 283.7);
Tailwind
colors: {
  custom: {
    50: '#947ade',
    500: '#5b45ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b45ce;
$custom-light: #947ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45ce",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 249.635,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49777,
    "c": 0.20103,
    "h": 283.7
  },
  "luminance": 0.10937
}

Semantic roles & 50–950 ramp

primary
#5B45CE
secondary
#CBD59A
accent
#E246C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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