#5540AE#5540AE

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

Color values

HEX#5540AE
RGBrgb(85, 64, 174)
HSLhsl(251, 46%, 47%)
HSVhsv(251, 63%, 68%)
CMYKcmyk(51.1%, 63.2%, 0%, 31.8%)
CIE-LABlab(35.31, 37.89, -55.97)
CIE-LCHlch(35.31, 67.59, 304.09°)
OKLaboklab(45.83% 0.0477 -0.1604)
OKLCHoklch(45.83% 0.167 286.6)
XYZxyz(13.2174, 8.6534, 41.0100)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540AE #99AE40
analogous
#4062AE #5540AE #8C40AE
triadic
#5540AE #AE5540 #40AE55
tetradic
#5540AE #AE4062 #99AE40 #40AE8C
square
#5540AE #AE4062 #99AE40 #40AE8C
split-complementary
#5540AE #AE8C40 #62AE40
monochromatic
#291F55 #3F3081 #5540AE #7765C6 #9F92D7

Accessibility & contrast

On white

7.69
#5540AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5540AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5540AE#FFFFFF#000000##FFFFFF
##5540AE1.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)
#0056B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#345A71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5540ae;
/* rgb */ color: rgb(85, 64, 174);
/* oklch */ color: oklch(45.8% 0.167 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c76c7',
    500: '#5540ae',
    950: '#000000',
  },
}
SCSS
$custom: #5540ae;
$custom-light: #8c76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5540ae",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 251.455,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45834,
    "c": 0.16735,
    "h": 286.6
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#5540AE
secondary
#B7C288
accent
#D652BD
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5540AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5540AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva