#5B45CF#5B45CF

#5B45CF is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.9% C 0.202 H 283.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5B45CF
RGBrgb(91, 69, 207)
HSLhsl(250, 59%, 54%)
HSVhsv(250, 67%, 81%)
CMYKcmyk(56%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.55, 46.08, -68.37)
CIE-LCHlch(39.55, 82.45, 303.98°)
OKLaboklab(49.86% 0.0474 -0.1966)
OKLCHoklch(49.86% 0.202 283.5)
XYZxyz(17.7015, 10.9843, 60.2068)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45CF #B9CF45
analogous
#4574CF #5B45CF #A045CF
triadic
#5B45CF #CF5B45 #45CF5B
tetradic
#5B45CF #CF4574 #B9CF45 #45CFA0
square
#5B45CF #CF4574 #B9CF45 #45CFA0
split-complementary
#5B45CF #CFA045 #74CF45
monochromatic
#2E207A #402CAB #5B45CF #8676DC #B1A6E8

Accessibility & contrast

On white

6.57
#5B45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5B45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45CF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45CF#FFFFFF#000000##FFFFFF
##5B45CF1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#216884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b45cf;
/* rgb */ color: rgb(91, 69, 207);
/* oklch */ color: oklch(49.9% 0.202 283.5);
Tailwind
colors: {
  custom: {
    50: '#947adf',
    500: '#5b45cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b45cf;
$custom-light: #947adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45cf",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 249.565,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49862,
    "c": 0.20227,
    "h": 283.5
  },
  "luminance": 0.10985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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