#5751E7#5751E7

#5751E7 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.4% C 0.219 H 277.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5751E7
RGBrgb(87, 81, 231)
HSLhsl(242, 76%, 61%)
HSVhsv(242, 65%, 91%)
CMYKcmyk(62.3%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.77, 46.04, -75.22)
CIE-LCHlch(43.77, 88.19, 301.47°)
OKLaboklab(53.44% 0.0296 -0.2168)
OKLCHoklch(53.44% 0.219 277.8)
XYZxyz(21.2921, 13.6789, 77.1041)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751E7 #E1E751
analogous
#5196E7 #5751E7 #A251E7
triadic
#5751E7 #E75751 #51E757
tetradic
#5751E7 #E75196 #E1E751 #51E7A2
square
#5751E7 #E75196 #E1E751 #51E7A2
split-complementary
#5751E7 #E7A251 #96E751
monochromatic
#1D17A7 #261EDC #5751E7 #8B87EE #BFBDF6

Accessibility & contrast

On white

5.62
#5751E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5751E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751E7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751E7#FFFFFF#000000##FFFFFF
##5751E71.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0061E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5751e7;
/* rgb */ color: rgb(87, 81, 231);
/* oklch */ color: oklch(53.4% 0.219 277.8);
Tailwind
colors: {
  custom: {
    50: '#9683f0',
    500: '#5751e7',
    950: '#000000',
  },
}
SCSS
$custom: #5751e7;
$custom-light: #9683f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5751e7",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 242.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53444,
    "c": 0.21883,
    "h": 277.8
  },
  "luminance": 0.13681
}

Semantic roles & 50–950 ramp

primary
#5751E7
secondary
#E4E6AE
accent
#D80ED0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5751E7

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

Preview Lab → · Contrast checker → · Palette generator →

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