#5A57CC#5A57CC

#5A57CC is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.5% C 0.176 H 279.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5A57CC
RGBrgb(90, 87, 204)
HSLhsl(242, 53%, 57%)
HSVhsv(242, 57%, 80%)
CMYKcmyk(55.9%, 57.4%, 0%, 20%)
CIE-LABlab(43.28, 34.34, -60.58)
CIE-LCHlch(43.28, 69.63, 299.55°)
OKLaboklab(52.5% 0.0293 -0.1737)
OKLCHoklch(52.5% 0.176 279.6)
XYZxyz(18.5203, 13.3485, 58.7156)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57CC #C9CC57
analogous
#578FCC #5A57CC #9457CC
triadic
#5A57CC #CC5A57 #57CC5A
tetradic
#5A57CC #CC578F #C9CC57 #57CC94
square
#5A57CC #CC578F #C9CC57 #57CC94
split-complementary
#5A57CC #CC9457 #8FCC57
monochromatic
#2A2781 #3936B0 #5A57CC #8886DA #B6B5E9

Accessibility & contrast

On white

5.72
#5A57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5A57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57CC
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57CC#FFFFFF#000000##FFFFFF
##5A57CC1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#1E7289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a57cc;
/* rgb */ color: rgb(90, 87, 204);
/* oklch */ color: oklch(52.5% 0.176 279.6);
Tailwind
colors: {
  custom: {
    50: '#9286dc',
    500: '#5a57cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a57cc;
$custom-light: #9286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57cc",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 241.538,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52497,
    "c": 0.17615,
    "h": 279.6
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#5A57CC
secondary
#D6D7A8
accent
#DD4BD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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