#5641AA#5641AA

#5641AA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.8% C 0.161 H 287.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5641AA
RGBrgb(86, 65, 170)
HSLhsl(252, 45%, 46%)
HSVhsv(252, 62%, 67%)
CMYKcmyk(49.4%, 61.8%, 0%, 33.3%)
CIE-LABlab(35.32, 36.28, -53.56)
CIE-LCHlch(35.32, 64.69, 304.11°)
OKLaboklab(45.77% 0.0483 -0.1533)
OKLCHoklch(45.77% 0.161 287.5)
XYZxyz(12.9816, 8.6607, 39.0101)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5641AA #95AA41
analogous
#4160AA #5641AA #8A41AA
triadic
#5641AA #AA5641 #41AA56
tetradic
#5641AA #AA4160 #95AA41 #41AA8A
square
#5641AA #AA4160 #95AA41 #41AA8A
split-complementary
#5641AA #AA8A41 #60AA41
monochromatic
#291F51 #40307E #5641AA #7764C4 #9E91D5

Accessibility & contrast

On white

7.69
#5641AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5641AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5641AA#FFFFFF#000000##FFFFFF
##5641AA1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#395A6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5641aa;
/* rgb */ color: rgb(86, 65, 170);
/* oklch */ color: oklch(45.8% 0.161 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c76c4',
    500: '#5641aa',
    950: '#000000',
  },
}
SCSS
$custom: #5641aa;
$custom-light: #8c76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5641aa",
  "rgb": {
    "r": 86,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 252,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45772,
    "c": 0.1607,
    "h": 287.5
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#5641AA
secondary
#B5C087
accent
#D453BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5641AA

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

Preview Lab → · Contrast checker → · Palette generator →

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