#5642CE#5642CE

#5642CE is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.205 H 282.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5642CE
RGBrgb(86, 66, 206)
HSLhsl(249, 59%, 53%)
HSVhsv(249, 68%, 81%)
CMYKcmyk(58.3%, 68%, 0%, 19.2%)
CIE-LABlab(38.43, 46.68, -69.65)
CIE-LCHlch(38.43, 83.85, 303.83°)
OKLaboklab(48.92% 0.0434 -0.2005)
OKLCHoklch(48.92% 0.205 282.2)
XYZxyz(16.9231, 10.3300, 59.4827)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642CE #BACE42
analogous
#4274CE #5642CE #9C42CE
triadic
#5642CE #CE5642 #42CE56
tetradic
#5642CE #CE4274 #BACE42 #42CE9C
square
#5642CE #CE4274 #BACE42 #42CE9C
split-complementary
#5642CE #CE9C42 #74CE42
monochromatic
#2B1F77 #3D2BA7 #5642CE #8173DB #ADA3E7

Accessibility & contrast

On white

6.85
#5642CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5642CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642CE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642CE#FFFFFF#000000##FFFFFF
##5642CE1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#086783
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5642ce;
/* rgb */ color: rgb(86, 66, 206);
/* oklch */ color: oklch(48.9% 0.205 282.2);
Tailwind
colors: {
  custom: {
    50: '#9278de',
    500: '#5642ce',
    950: '#000000',
  },
}
SCSS
$custom: #5642ce;
$custom-light: #9278de;
$custom-dark: #000000;
JSON
{
  "hex": "#5642ce",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 248.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48921,
    "c": 0.20519,
    "h": 282.2
  },
  "luminance": 0.10331
}

Semantic roles & 50–950 ramp

primary
#5642CE
secondary
#CBD498
accent
#E246CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642CE

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

Preview Lab → · Contrast checker → · Palette generator →

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