#5641AC#5641AC

#5641AC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.9% C 0.163 H 287.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5641AC
RGBrgb(86, 65, 172)
HSLhsl(252, 45%, 46%)
HSVhsv(252, 62%, 67%)
CMYKcmyk(50%, 62.2%, 0%, 32.5%)
CIE-LABlab(35.47, 36.88, -54.51)
CIE-LCHlch(35.47, 65.82, 304.08°)
OKLaboklab(45.93% 0.0481 -0.1561)
OKLCHoklch(45.93% 0.163 287.1)
XYZxyz(13.1723, 8.7370, 40.0141)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5641AC #97AC41
analogous
#4162AC #5641AC #8C41AC
triadic
#5641AC #AC5641 #41AC56
tetradic
#5641AC #AC4162 #97AC41 #41AC8C
square
#5641AC #AC4162 #97AC41 #41AC8C
split-complementary
#5641AC #AC8C41 #62AC41
monochromatic
#2A1F53 #403080 #5641AC #7865C5 #9F92D6

Accessibility & contrast

On white

7.64
#5641AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5641AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5641AC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5641AC#FFFFFF#000000##FFFFFF
##5641AC1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#385A70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5641ac;
/* rgb */ color: rgb(86, 65, 172);
/* oklch */ color: oklch(45.9% 0.163 287.1);
Tailwind
colors: {
  custom: {
    50: '#8d77c5',
    500: '#5641ac',
    950: '#000000',
  },
}
SCSS
$custom: #5641ac;
$custom-light: #8d77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5641ac",
  "rgb": {
    "r": 86,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 251.776,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45929,
    "c": 0.16333,
    "h": 287.1
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#5641AC
secondary
#B6C188
accent
#D553BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5641AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5641AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva