#5642E2#5642E2

#5642E2 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.7% C 0.229 H 280.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5642E2
RGBrgb(86, 66, 226)
HSLhsl(248, 73%, 57%)
HSVhsv(248, 71%, 89%)
CMYKcmyk(61.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.19, 52.75, -78.25)
CIE-LCHlch(40.19, 94.37, 303.99°)
OKLaboklab(50.72% 0.04 -0.2257)
OKLCHoklch(50.72% 0.229 280)
XYZxyz(19.5091, 11.3644, 73.1022)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642E2 #CEE242
analogous
#427EE2 #5642E2 #A642E2
triadic
#5642E2 #E25642 #42E256
tetradic
#5642E2 #E2427E #CEE242 #42E2A6
square
#5642E2 #E2427E #CEE242 #42E2A6
split-complementary
#5642E2 #E2A642 #7EE242
monochromatic
#261793 #341FC8 #5642E2 #8577EA #B5ACF2

Accessibility & contrast

On white

6.42
#5642E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5642E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642E2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642E2#FFFFFF#000000##FFFFFF
##5642E21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5642e2;
/* rgb */ color: rgb(86, 66, 226);
/* oklch */ color: oklch(50.7% 0.229 280.0);
Tailwind
colors: {
  custom: {
    50: '#9579ec',
    500: '#5642e2',
    950: '#000000',
  },
}
SCSS
$custom: #5642e2;
$custom-light: #9579ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5642e2",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 247.5,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50717,
    "c": 0.22924,
    "h": 280
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#5642E2
secondary
#D8E09F
accent
#F038D9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5642E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5642E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva