#5642D9#5642D9

#5642D9 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.219 H 281.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5642D9
RGBrgb(86, 66, 217)
HSLhsl(248, 67%, 55%)
HSVhsv(248, 70%, 85%)
CMYKcmyk(60.4%, 69.6%, 0%, 14.9%)
CIE-LABlab(39.38, 50.03, -74.43)
CIE-LCHlch(39.38, 89.68, 303.91°)
OKLaboklab(49.9% 0.0416 -0.2145)
OKLCHoklch(49.9% 0.219 281)
XYZxyz(18.3064, 10.8833, 66.7682)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642D9 #C5D942
analogous
#4279D9 #5642D9 #A142D9
triadic
#5642D9 #D95642 #42D956
tetradic
#5642D9 #D94279 #C5D942 #42D9A1
square
#5642D9 #D94279 #C5D942 #42D9A1
split-complementary
#5642D9 #D9A142 #79D942
monochromatic
#291B86 #3925B9 #5642D9 #8475E3 #B1A8ED

Accessibility & contrast

On white

6.61
#5642D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5642D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642D9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642D9#FFFFFF#000000##FFFFFF
##5642D91.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5642d9;
/* rgb */ color: rgb(86, 66, 217);
/* oklch */ color: oklch(49.9% 0.219 281.0);
Tailwind
colors: {
  custom: {
    50: '#9478e6',
    500: '#5642d9',
    950: '#000000',
  },
}
SCSS
$custom: #5642d9;
$custom-light: #9478e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5642d9",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 247.947,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49899,
    "c": 0.21853,
    "h": 281
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#5642D9
secondary
#D3DB9C
accent
#E93ED3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5642D9

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

Preview Lab → · Contrast checker → · Palette generator →

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