#5641A2#5641A2

#5641A2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.2% C 0.150 H 288.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5641A2
RGBrgb(86, 65, 162)
HSLhsl(253, 43%, 45%)
HSVhsv(253, 60%, 64%)
CMYKcmyk(46.9%, 59.9%, 0%, 36.5%)
CIE-LABlab(34.74, 33.86, -49.72)
CIE-LCHlch(34.74, 60.15, 304.25°)
OKLaboklab(45.16% 0.0486 -0.142)
OKLCHoklch(45.16% 0.15 288.9)
XYZxyz(12.2478, 8.3672, 35.1451)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5641A2 #8DA241
analogous
#415DA2 #5641A2 #8741A2
triadic
#5641A2 #A25641 #41A256
tetradic
#5641A2 #A2415D #8DA241 #41A287
square
#5641A2 #A2415D #8DA241 #41A287
split-complementary
#5641A2 #A28741 #5DA241
monochromatic
#281E4B #3F2F76 #5641A2 #7561BF #9B8CD1

Accessibility & contrast

On white

7.85
#5641A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5641A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5641A2#FFFFFF#000000##FFFFFF
##5641A21.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#3E576B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5641a2;
/* rgb */ color: rgb(86, 65, 162);
/* oklch */ color: oklch(45.2% 0.150 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b76be',
    500: '#5641a2',
    950: '#000000',
  },
}
SCSS
$custom: #5641a2;
$custom-light: #8b76be;
$custom-dark: #000000;
JSON
{
  "hex": "#5641a2",
  "rgb": {
    "r": 86,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 252.99,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45156,
    "c": 0.15007,
    "h": 288.9
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

primary
#5641A2
secondary
#B0BC83
accent
#D355B7
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #5641A2

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

Preview Lab → · Contrast checker → · Palette generator →

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