#5642CF#5642CF

#5642CF is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.0% C 0.206 H 282.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5642CF
RGBrgb(86, 66, 207)
HSLhsl(249, 59%, 54%)
HSVhsv(249, 68%, 81%)
CMYKcmyk(58.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(38.51, 46.99, -70.09)
CIE-LCHlch(38.51, 84.39, 303.84°)
OKLaboklab(49.01% 0.0432 -0.2018)
OKLCHoklch(49.01% 0.206 282.1)
XYZxyz(17.0449, 10.3787, 60.1245)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642CF #BBCF42
analogous
#4274CF #5642CF #9D42CF
triadic
#5642CF #CF5642 #42CF56
tetradic
#5642CF #CF4274 #BBCF42 #42CF9D
square
#5642CF #CF4274 #BBCF42 #42CF9D
split-complementary
#5642CF #CF9D42 #74CF42
monochromatic
#2B1F78 #3D2BA9 #5642CF #8273DB #ADA4E8

Accessibility & contrast

On white

6.83
#5642CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5642CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642CF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642CF#FFFFFF#000000##FFFFFF
##5642CF1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#046783
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5642cf;
/* rgb */ color: rgb(86, 66, 207);
/* oklch */ color: oklch(49.0% 0.206 282.1);
Tailwind
colors: {
  custom: {
    50: '#9278df',
    500: '#5642cf',
    950: '#000000',
  },
}
SCSS
$custom: #5642cf;
$custom-light: #9278df;
$custom-dark: #000000;
JSON
{
  "hex": "#5642cf",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 248.511,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49009,
    "c": 0.20641,
    "h": 282.1
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

primary
#5642CF
secondary
#CCD598
accent
#E345CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642CF

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

Preview Lab → · Contrast checker → · Palette generator →

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