#5A57CA#5A57CA

#5A57CA is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.3% C 0.173 H 279.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5A57CA
RGBrgb(90, 87, 202)
HSLhsl(242, 52%, 57%)
HSVhsv(242, 57%, 79%)
CMYKcmyk(55.4%, 56.9%, 0%, 20.8%)
CIE-LABlab(43.14, 33.70, -59.65)
CIE-LCHlch(43.14, 68.51, 299.46°)
OKLaboklab(52.35% 0.0293 -0.171)
OKLCHoklch(52.35% 0.173 279.7)
XYZxyz(18.2820, 13.2531, 57.4604)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57CA #C7CA57
analogous
#578ECA #5A57CA #9457CA
triadic
#5A57CA #CA5A57 #57CA5A
tetradic
#5A57CA #CA578E #C7CA57 #57CA94
square
#5A57CA #CA578E #C7CA57 #57CA94
split-complementary
#5A57CA #CA9457 #8ECA57
monochromatic
#2A287F #3A37AD #5A57CA #8886D9 #B5B4E7

Accessibility & contrast

On white

5.75
#5A57CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5A57CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57CA
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57CA#FFFFFF#000000##FFFFFF
##5A57CA1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#217288
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a57ca;
/* rgb */ color: rgb(90, 87, 202);
/* oklch */ color: oklch(52.3% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#9286db',
    500: '#5a57ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a57ca;
$custom-light: #9286db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57ca",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 241.565,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52347,
    "c": 0.17346,
    "h": 279.7
  },
  "luminance": 0.13254
}

Semantic roles & 50–950 ramp

primary
#5A57CA
secondary
#D5D6A7
accent
#DB4CD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A57CA

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

Preview Lab → · Contrast checker → · Palette generator →

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