#5A54EA#5A54EA

#5A54EA is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.4% C 0.218 H 278.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5A54EA
RGBrgb(90, 84, 234)
HSLhsl(242, 78%, 62%)
HSVhsv(242, 64%, 92%)
CMYKcmyk(61.5%, 64.1%, 0%, 8.2%)
CIE-LABlab(44.88, 45.68, -75.09)
CIE-LCHlch(44.88, 87.90, 301.31°)
OKLaboklab(54.38% 0.0305 -0.2164)
OKLCHoklch(54.38% 0.219 278)
XYZxyz(22.2333, 14.4531, 79.4440)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54EA #E4EA54
analogous
#5499EA #5A54EA #A554EA
triadic
#5A54EA #EA5A54 #54EA5A
tetradic
#5A54EA #EA5499 #E4EA54 #54EAA5
square
#5A54EA #EA5499 #E4EA54 #54EAA5
split-complementary
#5A54EA #EAA554 #99EA54
monochromatic
#1C15AE #251DE3 #5A54EA #8F8BF1 #C3C1F7

Accessibility & contrast

On white

5.40
#5A54EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5A54EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54EA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54EA#FFFFFF#000000##FFFFFF
##5A54EA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0064E7
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a54ea;
/* rgb */ color: rgb(90, 84, 234);
/* oklch */ color: oklch(54.4% 0.218 278.0);
Tailwind
colors: {
  custom: {
    50: '#9785f2',
    500: '#5a54ea',
    950: '#000000',
  },
}
SCSS
$custom: #5a54ea;
$custom-light: #9785f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54ea",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 242.4,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54378,
    "c": 0.2185,
    "h": 278
  },
  "luminance": 0.14455
}

Semantic roles & 50–950 ramp

primary
#5A54EA
secondary
#E6E8B2
accent
#DA0BD2
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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