#5B54CA#5B54CA

#5B54CA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.177 H 280.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B54CA
RGBrgb(91, 84, 202)
HSLhsl(244, 53%, 56%)
HSVhsv(244, 58%, 79%)
CMYKcmyk(55%, 58.4%, 0%, 20.8%)
CIE-LABlab(42.50, 35.72, -60.68)
CIE-LCHlch(42.50, 70.42, 300.48°)
OKLaboklab(51.89% 0.0336 -0.174)
OKLCHoklch(51.89% 0.177 280.9)
XYZxyz(18.1421, 12.8279, 57.3857)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54CA #C3CA54
analogous
#5488CA #5B54CA #9654CA
triadic
#5B54CA #CA5B54 #54CA5B
tetradic
#5B54CA #CA5488 #C3CA54 #54CA96
square
#5B54CA #CA5488 #C3CA54 #54CA96
split-complementary
#5B54CA #CA9654 #88CA54
monochromatic
#2C277D #3C35AC #5B54CA #8883D8 #B5B1E7

Accessibility & contrast

On white

5.89
#5B54CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5B54CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54CA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54CA#FFFFFF#000000##FFFFFF
##5B54CA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#267087
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b54ca;
/* rgb */ color: rgb(91, 84, 202);
/* oklch */ color: oklch(51.9% 0.177 280.9);
Tailwind
colors: {
  custom: {
    50: '#9384db',
    500: '#5b54ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b54ca;
$custom-light: #9384db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54ca",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 243.559,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51893,
    "c": 0.17721,
    "h": 280.9
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#5B54CA
secondary
#D2D5A5
accent
#DC4CD4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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