#5642D7#5642D7

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

Color values

HEX#5642D7
RGBrgb(86, 66, 215)
HSLhsl(248, 65%, 55%)
HSVhsv(248, 69%, 84%)
CMYKcmyk(60%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.21, 49.42, -73.57)
CIE-LCHlch(39.21, 88.63, 303.89°)
OKLaboklab(49.72% 0.0419 -0.212)
OKLCHoklch(49.72% 0.216 281.2)
XYZxyz(18.0479, 10.7799, 65.4065)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642D7 #C3D742
analogous
#4278D7 #5642D7 #A142D7
triadic
#5642D7 #D75642 #42D756
tetradic
#5642D7 #D74278 #C3D742 #42D7A1
square
#5642D7 #D74278 #C3D742 #42D7A1
split-complementary
#5642D7 #D7A142 #78D742
monochromatic
#2A1C83 #3A26B5 #5642D7 #8375E2 #B0A7EC

Accessibility & contrast

On white

6.65
#5642D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5642D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642D7
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642D7#FFFFFF#000000##FFFFFF
##5642D71.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)
#0062DB
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5642d7;
/* rgb */ color: rgb(86, 66, 215);
/* oklch */ color: oklch(49.7% 0.216 281.2);
Tailwind
colors: {
  custom: {
    50: '#9378e5',
    500: '#5642d7',
    950: '#000000',
  },
}
SCSS
$custom: #5642d7;
$custom-light: #9378e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5642d7",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 248.054,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49719,
    "c": 0.21613,
    "h": 281.2
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#5642D7
secondary
#D1DA9B
accent
#E840D1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5642D7

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

Preview Lab → · Contrast checker → · Palette generator →

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