#5A57BC#5A57BC

#5A57BC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.154 H 280.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5A57BC
RGBrgb(90, 87, 188)
HSLhsl(242, 43%, 54%)
HSVhsv(242, 54%, 74%)
CMYKcmyk(52.1%, 53.7%, 0%, 26.3%)
CIE-LABlab(42.18, 29.24, -53.07)
CIE-LCHlch(42.18, 60.60, 298.85°)
OKLaboklab(51.33% 0.0289 -0.1516)
OKLCHoklch(51.33% 0.154 280.8)
XYZxyz(16.6990, 12.6199, 49.1232)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57BC #B9BC57
analogous
#5787BC #5A57BC #8D57BC
triadic
#5A57BC #BC5A57 #57BC5A
tetradic
#5A57BC #BC5787 #B9BC57 #57BC8D
square
#5A57BC #BC5787 #B9BC57 #57BC8D
split-complementary
#5A57BC #BC8D57 #87BC57
monochromatic
#2D2C6D #403D99 #5A57BC #8583CD #B0AFDF

Accessibility & contrast

On white

5.96
#5A57BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A57BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57BC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57BC#FFFFFF#000000##FFFFFF
##5A57BC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67C0
Deuteranopia (green-blind)
#0F60BA
Tritanopia (blue-blind)
#316E81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a57bc;
/* rgb */ color: rgb(90, 87, 188);
/* oklch */ color: oklch(51.3% 0.154 280.8);
Tailwind
colors: {
  custom: {
    50: '#9086d1',
    500: '#5a57bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a57bc;
$custom-light: #9086d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57bc",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 241.782,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.15436,
    "h": 280.8
  },
  "luminance": 0.12621
}

Semantic roles & 50–950 ramp

primary
#5A57BC
secondary
#CCCDA2
accent
#D355CF
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5A57BC

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

Preview Lab → · Contrast checker → · Palette generator →

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