#5B57CD#5B57CD

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

Color values

HEX#5B57CD
RGBrgb(91, 87, 205)
HSLhsl(242, 54%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(55.6%, 57.6%, 0%, 19.6%)
CIE-LABlab(43.43, 34.85, -60.91)
CIE-LCHlch(43.43, 70.18, 299.77°)
OKLaboklab(52.65% 0.0305 -0.1746)
OKLCHoklch(52.65% 0.177 279.9)
XYZxyz(18.7386, 13.4471, 59.3539)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57CD #C9CD57
analogous
#578ECD #5B57CD #9657CD
triadic
#5B57CD #CD5B57 #57CD5B
tetradic
#5B57CD #CD578E #C9CD57 #57CD96
square
#5B57CD #CD578E #C9CD57 #57CD96
split-complementary
#5B57CD #CD9657 #8ECD57
monochromatic
#2A2783 #3935B2 #5B57CD #8986DB #B7B5E9

Accessibility & contrast

On white

5.69
#5B57CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5B57CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57CD
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57CD#FFFFFF#000000##FFFFFF
##5B57CD1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#217389
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b57cd;
/* rgb */ color: rgb(91, 87, 205);
/* oklch */ color: oklch(52.6% 0.177 279.9);
Tailwind
colors: {
  custom: {
    50: '#9386dd',
    500: '#5b57cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b57cd;
$custom-light: #9386dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57cd",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 242.034,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52646,
    "c": 0.17729,
    "h": 279.9
  },
  "luminance": 0.13448
}

Semantic roles & 50–950 ramp

primary
#5B57CD
secondary
#D6D8A8
accent
#DD4AD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B57CD

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

Preview Lab → · Contrast checker → · Palette generator →

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