#5742DE#5742DE

#5742DE is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.4% C 0.224 H 280.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5742DE
RGBrgb(87, 66, 222)
HSLhsl(248, 70%, 56%)
HSVhsv(248, 70%, 87%)
CMYKcmyk(60.8%, 70.3%, 0%, 12.9%)
CIE-LABlab(39.91, 51.68, -76.43)
CIE-LCHlch(39.91, 92.26, 304.07°)
OKLaboklab(50.43% 0.042 -0.2204)
OKLCHoklch(50.43% 0.224 280.8)
XYZxyz(19.0594, 11.1952, 70.2496)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742DE #C9DE42
analogous
#427BDE #5742DE #A542DE
triadic
#5742DE #DE5742 #42DE57
tetradic
#5742DE #DE427B #C9DE42 #42DEA5
square
#5742DE #DE427B #C9DE42 #42DEA5
split-complementary
#5742DE #DEA542 #7BDE42
monochromatic
#28198D #3722C1 #5742DE #8576E7 #B4AAF0

Accessibility & contrast

On white

6.48
#5742DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5742DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742DE
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742DE#FFFFFF#000000##FFFFFF
##5742DE1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E3
Deuteranopia (green-blind)
#0058DB
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5742de;
/* rgb */ color: rgb(87, 66, 222);
/* oklch */ color: oklch(50.4% 0.224 280.8);
Tailwind
colors: {
  custom: {
    50: '#9579ea',
    500: '#5742de',
    950: '#000000',
  },
}
SCSS
$custom: #5742de;
$custom-light: #9579ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5742de",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 248.077,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.22433,
    "h": 280.8
  },
  "luminance": 0.11197
}

Semantic roles & 50–950 ramp

primary
#5742DE
secondary
#D5DE9E
accent
#ED3BD5
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5742DE

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

Preview Lab → · Contrast checker → · Palette generator →

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