#5B54CF#5B54CF

#5B54CF is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.3% C 0.184 H 280.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5B54CF
RGBrgb(91, 84, 207)
HSLhsl(243, 56%, 57%)
HSVhsv(243, 59%, 81%)
CMYKcmyk(56%, 59.4%, 0%, 18.8%)
CIE-LABlab(42.87, 37.30, -62.98)
CIE-LCHlch(42.87, 73.19, 300.64°)
OKLaboklab(52.28% 0.0335 -0.1807)
OKLCHoklch(52.28% 0.184 280.5)
XYZxyz(18.7437, 13.0686, 60.5542)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54CF #C8CF54
analogous
#548ACF #5B54CF #9954CF
triadic
#5B54CF #CF5B54 #54CF5B
tetradic
#5B54CF #CF548A #C8CF54 #54CF99
square
#5B54CF #CF548A #C8CF54 #54CF99
split-complementary
#5B54CF #CF9954 #8ACF54
monochromatic
#2A2584 #3A32B3 #5B54CF #8984DC #B7B4EA

Accessibility & contrast

On white

5.81
#5B54CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5B54CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54CF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54CF#FFFFFF#000000##FFFFFF
##5B54CF1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#1E7189
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b54cf;
/* rgb */ color: rgb(91, 84, 207);
/* oklch */ color: oklch(52.3% 0.184 280.5);
Tailwind
colors: {
  custom: {
    50: '#9384df',
    500: '#5b54cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b54cf;
$custom-light: #9384df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54cf",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 243.415,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52276,
    "c": 0.18382,
    "h": 280.5
  },
  "luminance": 0.1307
}

Semantic roles & 50–950 ramp

primary
#5B54CF
secondary
#D6D8A6
accent
#DF48D7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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