#5641BA#5641BA

#5641BA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.181 H 285.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5641BA
RGBrgb(86, 65, 186)
HSLhsl(250, 48%, 49%)
HSVhsv(250, 65%, 73%)
CMYKcmyk(53.8%, 65.1%, 0%, 27.1%)
CIE-LABlab(36.56, 41.15, -61.03)
CIE-LCHlch(36.56, 73.61, 303.99°)
OKLaboklab(47.06% 0.0469 -0.1752)
OKLCHoklch(47.06% 0.181 285)
XYZxyz(14.5883, 9.3034, 47.4719)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5641BA #A5BA41
analogous
#4169BA #5641BA #9341BA
triadic
#5641BA #BA5641 #41BA56
tetradic
#5641BA #BA4169 #A5BA41 #41BA93
square
#5641BA #BA4169 #A5BA41 #41BA93
split-complementary
#5641BA #BA9341 #69BA41
monochromatic
#2C215F #41318D #5641BA #7D6CCC #A59ADC

Accessibility & contrast

On white

7.34
#5641BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5641BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5641BA#FFFFFF#000000##FFFFFF
##5641BA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#2C5F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5641ba;
/* rgb */ color: rgb(86, 65, 186);
/* oklch */ color: oklch(47.1% 0.181 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f77d0',
    500: '#5641ba',
    950: '#000000',
  },
}
SCSS
$custom: #5641ba;
$custom-light: #8f77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5641ba",
  "rgb": {
    "r": 86,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 250.413,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47062,
    "c": 0.18141,
    "h": 285
  },
  "luminance": 0.09304
}

Semantic roles & 50–950 ramp

primary
#5641BA
secondary
#BEC88F
accent
#D850C0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5641BA

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

Preview Lab → · Contrast checker → · Palette generator →

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