#5A57CD#5A57CD

#5A57CD is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.6% C 0.177 H 279.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5A57CD
RGBrgb(90, 87, 205)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(56.1%, 57.6%, 0%, 19.6%)
CIE-LABlab(43.35, 34.66, -61.04)
CIE-LCHlch(43.35, 70.19, 299.59°)
OKLaboklab(52.57% 0.0293 -0.175)
OKLCHoklch(52.57% 0.177 279.5)
XYZxyz(18.6406, 13.3966, 59.3493)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57CD #CACD57
analogous
#578FCD #5A57CD #9557CD
triadic
#5A57CD #CD5A57 #57CD5A
tetradic
#5A57CD #CD578F #CACD57 #57CD95
square
#5A57CD #CD578F #CACD57 #57CD95
split-complementary
#5A57CD #CD9557 #8FCD57
monochromatic
#292783 #3835B2 #5A57CD #8886DB #B7B5E9

Accessibility & contrast

On white

5.71
#5A57CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5A57CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57CD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57CD#FFFFFF#000000##FFFFFF
##5A57CD1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#1C7389
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a57cd;
/* rgb */ color: rgb(90, 87, 205);
/* oklch */ color: oklch(52.6% 0.177 279.5);
Tailwind
colors: {
  custom: {
    50: '#9286dd',
    500: '#5a57cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a57cd;
$custom-light: #9286dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57cd",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 241.525,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52572,
    "c": 0.17749,
    "h": 279.5
  },
  "luminance": 0.13398
}

Semantic roles & 50–950 ramp

primary
#5A57CD
secondary
#D7D8A8
accent
#DD4ADA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A57CD

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

Preview Lab → · Contrast checker → · Palette generator →

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