#5642AD#5642AD

#5642AD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.2% C 0.163 H 286.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5642AD
RGBrgb(86, 66, 173)
HSLhsl(251, 45%, 47%)
HSVhsv(251, 62%, 68%)
CMYKcmyk(50.3%, 61.8%, 0%, 32.2%)
CIE-LABlab(35.77, 36.59, -54.62)
CIE-LCHlch(35.77, 65.74, 303.82°)
OKLaboklab(46.17% 0.047 -0.1564)
OKLCHoklch(46.17% 0.163 286.7)
XYZxyz(13.3266, 8.8914, 40.5411)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642AD #99AD42
analogous
#4264AD #5642AD #8C42AD
triadic
#5642AD #AD5642 #42AD56
tetradic
#5642AD #AD4264 #99AD42 #42AD8C
square
#5642AD #AD4264 #99AD42 #42AD8C
split-complementary
#5642AD #AD8C42 #64AD42
monochromatic
#2A2054 #403181 #5642AD #7967C5 #A093D6

Accessibility & contrast

On white

7.56
#5642AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5642AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5642AD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642AD#FFFFFF#000000##FFFFFF
##5642AD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#375B71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5642ad;
/* rgb */ color: rgb(86, 66, 173);
/* oklch */ color: oklch(46.2% 0.163 286.7);
Tailwind
colors: {
  custom: {
    50: '#8d77c6',
    500: '#5642ad',
    950: '#000000',
  },
}
SCSS
$custom: #5642ad;
$custom-light: #8d77c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5642ad",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 251.215,
    "s": 44.77,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46173,
    "c": 0.16329,
    "h": 286.7
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#5642AD
secondary
#B7C189
accent
#D453BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5642AD

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

Preview Lab → · Contrast checker → · Palette generator →

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