#5642C8#5642C8

#5642C8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.4% C 0.198 H 282.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5642C8
RGBrgb(86, 66, 200)
HSLhsl(249, 55%, 52%)
HSVhsv(249, 67%, 78%)
CMYKcmyk(57%, 67%, 0%, 21.6%)
CIE-LABlab(37.92, 44.85, -67.00)
CIE-LCHlch(37.92, 80.63, 303.80°)
OKLaboklab(48.4% 0.0442 -0.1928)
OKLCHoklch(48.4% 0.198 282.9)
XYZxyz(16.2081, 10.0440, 55.7170)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642C8 #B4C842
analogous
#4271C8 #5642C8 #9942C8
triadic
#5642C8 #C85642 #42C856
tetradic
#5642C8 #C84271 #B4C842 #42C899
square
#5642C8 #C84271 #B4C842 #42C899
split-complementary
#5642C8 #C89942 #71C842
monochromatic
#2C206F #3F2E9F #5642C8 #8071D6 #ABA1E4

Accessibility & contrast

On white

6.98
#5642C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5642C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642C8
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642C8#FFFFFF#000000##FFFFFF
##5642C81.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#18647F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5642c8;
/* rgb */ color: rgb(86, 66, 200);
/* oklch */ color: oklch(48.4% 0.198 282.9);
Tailwind
colors: {
  custom: {
    50: '#9178da',
    500: '#5642c8',
    950: '#000000',
  },
}
SCSS
$custom: #5642c8;
$custom-light: #9178da;
$custom-dark: #000000;
JSON
{
  "hex": "#5642c8",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 248.955,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.484,
    "c": 0.19778,
    "h": 282.9
  },
  "luminance": 0.10045
}

Semantic roles & 50–950 ramp

primary
#5642C8
secondary
#C7D096
accent
#DE4AC8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5642C8

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

Preview Lab → · Contrast checker → · Palette generator →

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