#5642D2#5642D2

#5642D2 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.3% C 0.210 H 281.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5642D2
RGBrgb(86, 66, 210)
HSLhsl(248, 62%, 54%)
HSVhsv(248, 69%, 82%)
CMYKcmyk(59%, 68.6%, 0%, 17.6%)
CIE-LABlab(38.77, 47.90, -71.40)
CIE-LCHlch(38.77, 85.98, 303.86°)
OKLaboklab(49.27% 0.0428 -0.2057)
OKLCHoklch(49.27% 0.21 281.7)
XYZxyz(17.4152, 10.5268, 62.0744)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642D2 #BED242
analogous
#4276D2 #5642D2 #9E42D2
triadic
#5642D2 #D25642 #42D256
tetradic
#5642D2 #D24276 #BED242 #42D29E
square
#5642D2 #D24276 #BED242 #42D29E
split-complementary
#5642D2 #D29E42 #76D242
monochromatic
#2B1E7C #3C29AD #5642D2 #8273DE #AEA5EA

Accessibility & contrast

On white

6.76
#5642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642D2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642D2#FFFFFF#000000##FFFFFF
##5642D21.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5642d2;
/* rgb */ color: rgb(86, 66, 210);
/* oklch */ color: oklch(49.3% 0.210 281.7);
Tailwind
colors: {
  custom: {
    50: '#9378e1',
    500: '#5642d2',
    950: '#000000',
  },
}
SCSS
$custom: #5642d2;
$custom-light: #9378e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5642d2",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 248.333,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49274,
    "c": 0.21007,
    "h": 281.7
  },
  "luminance": 0.10528
}

Semantic roles & 50–950 ramp

primary
#5642D2
secondary
#CED799
accent
#E543CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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