#5A54CA#5A54CA

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

Color values

HEX#5A54CA
RGBrgb(90, 84, 202)
HSLhsl(243, 53%, 56%)
HSVhsv(243, 58%, 79%)
CMYKcmyk(55.4%, 58.4%, 0%, 20.8%)
CIE-LABlab(42.43, 35.53, -60.81)
CIE-LCHlch(42.43, 70.43, 300.30°)
OKLaboklab(51.82% 0.0323 -0.1744)
OKLCHoklch(51.82% 0.177 280.5)
XYZxyz(18.0441, 12.7774, 57.3811)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54CA #C4CA54
analogous
#5489CA #5A54CA #9554CA
triadic
#5A54CA #CA5A54 #54CA5A
tetradic
#5A54CA #CA5489 #C4CA54 #54CA95
square
#5A54CA #CA5489 #C4CA54 #54CA95
split-complementary
#5A54CA #CA9554 #89CA54
monochromatic
#2B277D #3B35AC #5A54CA #8783D8 #B4B1E7

Accessibility & contrast

On white

5.91
#5A54CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5A54CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54CA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54CA#FFFFFF#000000##FFFFFF
##5A54CA1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a54ca;
/* rgb */ color: rgb(90, 84, 202);
/* oklch */ color: oklch(51.8% 0.177 280.5);
Tailwind
colors: {
  custom: {
    50: '#9284db',
    500: '#5a54ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a54ca;
$custom-light: #9284db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54ca",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 243.051,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51817,
    "c": 0.17738,
    "h": 280.5
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#5A54CA
secondary
#D3D5A5
accent
#DC4CD5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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