#5A57DB#5A57DB

#5A57DB is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.7% C 0.196 H 278.5°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5A57DB
RGBrgb(90, 87, 219)
HSLhsl(241, 65%, 60%)
HSVhsv(241, 60%, 86%)
CMYKcmyk(58.9%, 60.3%, 0%, 14.1%)
CIE-LABlab(44.38, 39.14, -67.39)
CIE-LCHlch(44.38, 77.93, 300.14°)
OKLaboklab(53.65% 0.029 -0.1937)
OKLCHoklch(53.65% 0.196 278.5)
XYZxyz(20.4067, 14.1030, 68.6509)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57DB #D8DB57
analogous
#5796DB #5A57DB #9C57DB
triadic
#5A57DB #DB5A57 #57DB5A
tetradic
#5A57DB #DB5796 #D8DB57 #57DB9C
square
#5A57DB #DB5796 #D8DB57 #57DB9C
split-complementary
#5A57DB #DB9C57 #96DB57
monochromatic
#232097 #2F2BCA #5A57DB #8C89E6 #BDBCF1

Accessibility & contrast

On white

5.50
#5A57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5A57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57DB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57DB#FFFFFF#000000##FFFFFF
##5A57DB1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a57db;
/* rgb */ color: rgb(90, 87, 219);
/* oklch */ color: oklch(53.7% 0.196 278.5);
Tailwind
colors: {
  custom: {
    50: '#9587e7',
    500: '#5a57db',
    950: '#000000',
  },
}
SCSS
$custom: #5a57db;
$custom-light: #9587e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57db",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 241.364,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.53652,
    "c": 0.1959,
    "h": 278.5
  },
  "luminance": 0.14105
}

Semantic roles & 50–950 ramp

primary
#5A57DB
secondary
#DFE0AD
accent
#E840E4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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