#5742E6#5742E6

#5742E6 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 51.2% C 0.234 H 280.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5742E6
RGBrgb(87, 66, 230)
HSLhsl(248, 77%, 58%)
HSVhsv(248, 71%, 90%)
CMYKcmyk(62.2%, 71.3%, 0%, 9.8%)
CIE-LABlab(40.63, 54.08, -79.80)
CIE-LCHlch(40.63, 96.40, 304.13°)
OKLaboklab(51.16% 0.0406 -0.2302)
OKLCHoklch(51.16% 0.234 280)
XYZxyz(20.1571, 11.6343, 76.0310)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742E6 #D1E642
analogous
#427FE6 #5742E6 #A942E6
triadic
#5742E6 #E65742 #42E657
tetradic
#5742E6 #E6427F #D1E642 #42E6A9
square
#5742E6 #E6427F #D1E642 #42E6A9
split-complementary
#5742E6 #E6A942 #7FE642
monochromatic
#251499 #321BCF #5742E6 #8778ED #B7AEF4

Accessibility & contrast

On white

6.31
#5742E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5742E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742E6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742E6#FFFFFF#000000##FFFFFF
##5742E61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EB
Deuteranopia (green-blind)
#0059E3
Tritanopia (blue-blind)
#006F90
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5742e6;
/* rgb */ color: rgb(87, 66, 230);
/* oklch */ color: oklch(51.2% 0.234 280.0);
Tailwind
colors: {
  custom: {
    50: '#9679ef',
    500: '#5742e6',
    950: '#000000',
  },
}
SCSS
$custom: #5742e6;
$custom-light: #9679ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5742e6",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 230
  },
  "hsl": {
    "h": 247.683,
    "s": 76.636,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51161,
    "c": 0.23376,
    "h": 280
  },
  "luminance": 0.11636
}

Semantic roles & 50–950 ramp

primary
#5742E6
secondary
#DAE3A1
accent
#F335DB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5742E6

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

Preview Lab → · Contrast checker → · Palette generator →

#5742E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva