#5B57CC#5B57CC

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

Color values

HEX#5B57CC
RGBrgb(91, 87, 204)
HSLhsl(242, 53%, 57%)
HSVhsv(242, 57%, 80%)
CMYKcmyk(55.4%, 57.4%, 0%, 20%)
CIE-LABlab(43.36, 34.53, -60.45)
CIE-LCHlch(43.36, 69.62, 299.73°)
OKLaboklab(52.57% 0.0305 -0.1733)
OKLCHoklch(52.57% 0.176 280)
XYZxyz(18.6183, 13.3990, 58.7202)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57CC #C8CC57
analogous
#578ECC #5B57CC #9557CC
triadic
#5B57CC #CC5B57 #57CC5B
tetradic
#5B57CC #CC578E #C8CC57 #57CC95
square
#5B57CC #CC578E #C8CC57 #57CC95
split-complementary
#5B57CC #CC9557 #8ECC57
monochromatic
#2A2781 #3A36B0 #5B57CC #8986DA #B7B5E9

Accessibility & contrast

On white

5.71
#5B57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5B57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57CC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57CC#FFFFFF#000000##FFFFFF
##5B57CC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b57cc;
/* rgb */ color: rgb(91, 87, 204);
/* oklch */ color: oklch(52.6% 0.176 280.0);
Tailwind
colors: {
  custom: {
    50: '#9386dc',
    500: '#5b57cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b57cc;
$custom-light: #9386dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57cc",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 242.051,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52571,
    "c": 0.17597,
    "h": 280
  },
  "luminance": 0.134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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