#5742D6#5742D6

#5742D6 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.7% C 0.215 H 281.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5742D6
RGBrgb(87, 66, 214)
HSLhsl(249, 64%, 55%)
HSVhsv(249, 69%, 84%)
CMYKcmyk(59.3%, 69.2%, 0%, 16.1%)
CIE-LABlab(39.20, 49.26, -73.00)
CIE-LCHlch(39.20, 88.07, 304.01°)
OKLaboklab(49.71% 0.0434 -0.2103)
OKLCHoklch(49.71% 0.215 281.7)
XYZxyz(18.0125, 10.7765, 64.7362)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742D6 #C1D642
analogous
#4277D6 #5742D6 #A142D6
triadic
#5742D6 #D65742 #42D657
tetradic
#5742D6 #D64277 #C1D642 #42D6A1
square
#5742D6 #D64277 #C1D642 #42D6A1
split-complementary
#5742D6 #D6A142 #77D642
monochromatic
#2A1C82 #3B27B4 #5742D6 #8474E1 #B0A7EC

Accessibility & contrast

On white

6.65
#5742D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5742D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742D6
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742D6#FFFFFF#000000##FFFFFF
##5742D61.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DA
Deuteranopia (green-blind)
#0057D3
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5742d6;
/* rgb */ color: rgb(87, 66, 214);
/* oklch */ color: oklch(49.7% 0.215 281.7);
Tailwind
colors: {
  custom: {
    50: '#9478e4',
    500: '#5742d6',
    950: '#000000',
  },
}
SCSS
$custom: #5742d6;
$custom-light: #9478e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5742d6",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 248.514,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49708,
    "c": 0.21476,
    "h": 281.7
  },
  "luminance": 0.10778
}

Semantic roles & 50–950 ramp

primary
#5742D6
secondary
#D0D99B
accent
#E740D0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5742D6

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

Preview Lab → · Contrast checker → · Palette generator →

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