#5642CA#5642CA

#5642CA is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.200 H 282.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5642CA
RGBrgb(86, 66, 202)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 67%, 79%)
CMYKcmyk(57.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.09, 45.46, -67.89)
CIE-LCHlch(38.09, 81.71, 303.81°)
OKLaboklab(48.57% 0.044 -0.1954)
OKLCHoklch(48.57% 0.2 282.7)
XYZxyz(16.4433, 10.1381, 56.9560)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642CA #B6CA42
analogous
#4272CA #5642CA #9A42CA
triadic
#5642CA #CA5642 #42CA56
tetradic
#5642CA #CA4272 #B6CA42 #42CA9A
square
#5642CA #CA4272 #B6CA42 #42CA9A
split-complementary
#5642CA #CA9A42 #72CA42
monochromatic
#2C2072 #3E2DA2 #5642CA #8172D7 #ABA2E5

Accessibility & contrast

On white

6.94
#5642CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5642CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642CA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642CA#FFFFFF#000000##FFFFFF
##5642CA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#146580
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5642ca;
/* rgb */ color: rgb(86, 66, 202);
/* oklch */ color: oklch(48.6% 0.200 282.7);
Tailwind
colors: {
  custom: {
    50: '#9178db',
    500: '#5642ca',
    950: '#000000',
  },
}
SCSS
$custom: #5642ca;
$custom-light: #9178db;
$custom-dark: #000000;
JSON
{
  "hex": "#5642ca",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 248.824,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48573,
    "c": 0.20026,
    "h": 282.7
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#5642CA
secondary
#C9D196
accent
#DF48C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642CA

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

Preview Lab → · Contrast checker → · Palette generator →

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