#5751EC#5751EC

#5751EC is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.225 H 277.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5751EC
RGBrgb(87, 81, 236)
HSLhsl(242, 80%, 62%)
HSVhsv(242, 66%, 93%)
CMYKcmyk(63.1%, 65.7%, 0%, 7.5%)
CIE-LABlab(44.18, 47.62, -77.36)
CIE-LCHlch(44.18, 90.85, 301.62°)
OKLaboklab(53.87% 0.029 -0.2231)
OKLCHoklch(53.87% 0.225 277.4)
XYZxyz(22.0083, 13.9654, 80.8764)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751EC #E6EC51
analogous
#5198EC #5751EC #A551EC
triadic
#5751EC #EC5751 #51EC57
tetradic
#5751EC #EC5198 #E6EC51 #51ECA5
square
#5751EC #EC5198 #E6EC51 #51ECA5
split-complementary
#5751EC #ECA551 #98EC51
monochromatic
#1913AF #221AE6 #5751EC #8C88F2 #C2BFF8

Accessibility & contrast

On white

5.54
#5751EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5751EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751EC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751EC#FFFFFF#000000##FFFFFF
##5751EC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5751ec;
/* rgb */ color: rgb(87, 81, 236);
/* oklch */ color: oklch(53.9% 0.225 277.4);
Tailwind
colors: {
  custom: {
    50: '#9683f3',
    500: '#5751ec',
    950: '#000000',
  },
}
SCSS
$custom: #5751ec;
$custom-light: #9683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5751ec",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 242.323,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53873,
    "c": 0.22499,
    "h": 277.4
  },
  "luminance": 0.13967
}

Semantic roles & 50–950 ramp

primary
#5751EC
secondary
#E7E9B0
accent
#DD09D4
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5751EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5751EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva