#5A54CF#5A54CF

#5A54CF is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.2% C 0.184 H 280.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5A54CF
RGBrgb(90, 84, 207)
HSLhsl(243, 56%, 57%)
HSVhsv(243, 59%, 81%)
CMYKcmyk(56.5%, 59.4%, 0%, 18.8%)
CIE-LABlab(42.79, 37.12, -63.10)
CIE-LCHlch(42.79, 73.21, 300.46°)
OKLaboklab(52.2% 0.0322 -0.1811)
OKLCHoklch(52.2% 0.184 280.1)
XYZxyz(18.6457, 13.0181, 60.5496)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54CF #C9CF54
analogous
#548CCF #5A54CF #9854CF
triadic
#5A54CF #CF5A54 #54CF5A
tetradic
#5A54CF #CF548C #C9CF54 #54CF98
square
#5A54CF #CF548C #C9CF54 #54CF98
split-complementary
#5A54CF #CF9854 #8CCF54
monochromatic
#2A2584 #3932B3 #5A54CF #8884DC #B6B4EA

Accessibility & contrast

On white

5.83
#5A54CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5A54CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54CF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54CF#FFFFFF#000000##FFFFFF
##5A54CF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#197189
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a54cf;
/* rgb */ color: rgb(90, 84, 207);
/* oklch */ color: oklch(52.2% 0.184 280.1);
Tailwind
colors: {
  custom: {
    50: '#9384df',
    500: '#5a54cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a54cf;
$custom-light: #9384df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54cf",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 242.927,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52201,
    "c": 0.18399,
    "h": 280.1
  },
  "luminance": 0.13019
}

Semantic roles & 50–950 ramp

primary
#5A54CF
secondary
#D6D8A6
accent
#DF48D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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