#5642CD#5642CD

#5642CD is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.8% C 0.204 H 282.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5642CD
RGBrgb(86, 66, 205)
HSLhsl(249, 58%, 53%)
HSVhsv(249, 68%, 80%)
CMYKcmyk(58%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.34, 46.38, -69.21)
CIE-LCHlch(38.34, 83.32, 303.82°)
OKLaboklab(48.83% 0.0435 -0.1993)
OKLCHoklch(48.83% 0.204 282.3)
XYZxyz(16.8020, 10.2815, 58.8449)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642CD #B9CD42
analogous
#4273CD #5642CD #9B42CD
triadic
#5642CD #CD5642 #42CD56
tetradic
#5642CD #CD4273 #B9CD42 #42CD9B
square
#5642CD #CD4273 #B9CD42 #42CD9B
split-complementary
#5642CD #CD9B42 #73CD42
monochromatic
#2C1F76 #3D2CA6 #5642CD #8172DA #ADA3E7

Accessibility & contrast

On white

6.87
#5642CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5642CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642CD
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642CD#FFFFFF#000000##FFFFFF
##5642CD1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#0C6682
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5642cd;
/* rgb */ color: rgb(86, 66, 205);
/* oklch */ color: oklch(48.8% 0.204 282.3);
Tailwind
colors: {
  custom: {
    50: '#9278dd',
    500: '#5642cd',
    950: '#000000',
  },
}
SCSS
$custom: #5642cd;
$custom-light: #9278dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5642cd",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 248.633,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48834,
    "c": 0.20396,
    "h": 282.3
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#5642CD
secondary
#CBD397
accent
#E146CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642CD

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

Preview Lab → · Contrast checker → · Palette generator →

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