#5A54DB#5A54DB

#5A54DB is a mid, vivid blue. Relative luminance 0.136; OKLCH L 53.1% C 0.200 H 279.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5A54DB
RGBrgb(90, 84, 219)
HSLhsl(243, 65%, 59%)
HSVhsv(243, 62%, 86%)
CMYKcmyk(58.9%, 61.6%, 0%, 14.1%)
CIE-LABlab(43.69, 40.93, -68.51)
CIE-LCHlch(43.69, 79.81, 300.85°)
OKLaboklab(53.15% 0.0317 -0.197)
OKLCHoklch(53.15% 0.2 279.1)
XYZxyz(20.1689, 13.6273, 68.5716)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54DB #D5DB54
analogous
#5491DB #5A54DB #9E54DB
triadic
#5A54DB #DB5A54 #54DB5A
tetradic
#5A54DB #DB5491 #D5DB54 #54DB9E
square
#5A54DB #DB5491 #D5DB54 #54DB9E
split-complementary
#5A54DB #DB9E54 #91DB54
monochromatic
#251F95 #312AC8 #5A54DB #8B87E6 #BCB9F0

Accessibility & contrast

On white

5.64
#5A54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5A54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54DB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54DB#FFFFFF#000000##FFFFFF
##5A54DB1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0062D8
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a54db;
/* rgb */ color: rgb(90, 84, 219);
/* oklch */ color: oklch(53.1% 0.200 279.1);
Tailwind
colors: {
  custom: {
    50: '#9584e7',
    500: '#5a54db',
    950: '#000000',
  },
}
SCSS
$custom: #5a54db;
$custom-light: #9584e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54db",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 242.667,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53148,
    "c": 0.19957,
    "h": 279.1
  },
  "luminance": 0.13629
}

Semantic roles & 50–950 ramp

primary
#5A54DB
secondary
#DDE0AB
accent
#E840E1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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