#5642D6#5642D6

#5642D6 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.215 H 281.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5642D6
RGBrgb(86, 66, 214)
HSLhsl(248, 64%, 55%)
HSVhsv(248, 69%, 84%)
CMYKcmyk(59.8%, 69.2%, 0%, 16.1%)
CIE-LABlab(39.12, 49.12, -73.14)
CIE-LCHlch(39.12, 88.10, 303.89°)
OKLaboklab(49.63% 0.0421 -0.2107)
OKLCHoklch(49.63% 0.215 281.3)
XYZxyz(17.9198, 10.7286, 64.7318)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642D6 #C2D642
analogous
#4278D6 #5642D6 #A042D6
triadic
#5642D6 #D65642 #42D656
tetradic
#5642D6 #D64278 #C2D642 #42D6A0
square
#5642D6 #D64278 #C2D642 #42D6A0
split-complementary
#5642D6 #D6A042 #78D642
monochromatic
#2A1C82 #3A27B4 #5642D6 #8374E1 #B0A7EC

Accessibility & contrast

On white

6.68
#5642D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5642D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642D6
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642D6#FFFFFF#000000##FFFFFF
##5642D61.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.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: #5642d6;
/* rgb */ color: rgb(86, 66, 214);
/* oklch */ color: oklch(49.6% 0.215 281.3);
Tailwind
colors: {
  custom: {
    50: '#9378e4',
    500: '#5642d6',
    950: '#000000',
  },
}
SCSS
$custom: #5642d6;
$custom-light: #9378e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5642d6",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 248.108,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49629,
    "c": 0.21491,
    "h": 281.3
  },
  "luminance": 0.1073
}

Semantic roles & 50–950 ramp

primary
#5642D6
secondary
#D1D99B
accent
#E740D1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5642D6

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

Preview Lab → · Contrast checker → · Palette generator →

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