#5A57C8#5A57C8

#5A57C8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.2% C 0.171 H 279.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A57C8
RGBrgb(90, 87, 200)
HSLhsl(242, 51%, 56%)
HSVhsv(242, 57%, 78%)
CMYKcmyk(55%, 56.5%, 0%, 21.6%)
CIE-LABlab(43.00, 33.06, -58.72)
CIE-LCHlch(43.00, 67.39, 299.38°)
OKLaboklab(52.2% 0.0293 -0.1682)
OKLCHoklch(52.2% 0.171 279.9)
XYZxyz(18.0467, 13.1590, 56.2214)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57C8 #C5C857
analogous
#578DC8 #5A57C8 #9357C8
triadic
#5A57C8 #C85A57 #57C85A
tetradic
#5A57C8 #C8578D #C5C857 #57C893
square
#5A57C8 #C8578D #C5C857 #57C893
split-complementary
#5A57C8 #C89357 #8DC857
monochromatic
#2B297C #3B38AA #5A57C8 #8785D7 #B5B3E6

Accessibility & contrast

On white

5.78
#5A57C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A57C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57C8
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57C8#FFFFFF#000000##FFFFFF
##5A57C81.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#247187
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a57c8;
/* rgb */ color: rgb(90, 87, 200);
/* oklch */ color: oklch(52.2% 0.171 279.9);
Tailwind
colors: {
  custom: {
    50: '#9286d9',
    500: '#5a57c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a57c8;
$custom-light: #9286d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57c8",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 241.593,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52199,
    "c": 0.17077,
    "h": 279.9
  },
  "luminance": 0.1316
}

Semantic roles & 50–950 ramp

primary
#5A57C8
secondary
#D3D5A6
accent
#DA4ED6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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