#5B54CD#5B54CD

#5B54CD is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.181 H 280.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5B54CD
RGBrgb(91, 84, 205)
HSLhsl(243, 55%, 57%)
HSVhsv(243, 59%, 80%)
CMYKcmyk(55.6%, 59%, 0%, 19.6%)
CIE-LABlab(42.72, 36.67, -62.06)
CIE-LCHlch(42.72, 72.08, 300.57°)
OKLaboklab(52.12% 0.0335 -0.1781)
OKLCHoklch(52.12% 0.181 280.7)
XYZxyz(18.5007, 12.9714, 59.2746)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54CD #C6CD54
analogous
#548ACD #5B54CD #9854CD
triadic
#5B54CD #CD5B54 #54CD5B
tetradic
#5B54CD #CD548A #C6CD54 #54CD98
square
#5B54CD #CD548A #C6CD54 #54CD98
split-complementary
#5B54CD #CD9854 #8ACD54
monochromatic
#2B2681 #3B34B0 #5B54CD #8883DB #B6B3E9

Accessibility & contrast

On white

5.84
#5B54CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5B54CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54CD
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54CD#FFFFFF#000000##FFFFFF
##5B54CD1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#217188
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b54cd;
/* rgb */ color: rgb(91, 84, 205);
/* oklch */ color: oklch(52.1% 0.181 280.7);
Tailwind
colors: {
  custom: {
    50: '#9384dd',
    500: '#5b54cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b54cd;
$custom-light: #9384dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54cd",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 243.471,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52122,
    "c": 0.18119,
    "h": 280.7
  },
  "luminance": 0.12973
}

Semantic roles & 50–950 ramp

primary
#5B54CD
secondary
#D4D7A6
accent
#DE4AD6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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