#5642CB#5642CB

#5642CB is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.201 H 282.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5642CB
RGBrgb(86, 66, 203)
HSLhsl(249, 57%, 53%)
HSVhsv(249, 67%, 80%)
CMYKcmyk(57.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(38.17, 45.77, -68.33)
CIE-LCHlch(38.17, 82.24, 303.81°)
OKLaboklab(48.66% 0.0438 -0.1967)
OKLCHoklch(48.66% 0.201 282.6)
XYZxyz(16.5621, 10.1856, 57.5816)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642CB #B7CB42
analogous
#4273CB #5642CB #9A42CB
triadic
#5642CB #CB5642 #42CB56
tetradic
#5642CB #CB4273 #B7CB42 #42CB9A
square
#5642CB #CB4273 #B7CB42 #42CB9A
split-complementary
#5642CB #CB9A42 #73CB42
monochromatic
#2C2073 #3E2DA3 #5642CB #8172D8 #ACA2E5

Accessibility & contrast

On white

6.91
#5642CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5642CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642CB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642CB#FFFFFF#000000##FFFFFF
##5642CB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#126681
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5642cb;
/* rgb */ color: rgb(86, 66, 203);
/* oklch */ color: oklch(48.7% 0.201 282.6);
Tailwind
colors: {
  custom: {
    50: '#9178dc',
    500: '#5642cb',
    950: '#000000',
  },
}
SCSS
$custom: #5642cb;
$custom-light: #9178dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5642cb",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 248.759,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4866,
    "c": 0.20149,
    "h": 282.6
  },
  "luminance": 0.10187
}

Semantic roles & 50–950 ramp

primary
#5642CB
secondary
#C9D297
accent
#E048CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642CB

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

Preview Lab → · Contrast checker → · Palette generator →

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