#5540BA#5540BA

#5540BA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.8% C 0.183 H 284.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5540BA
RGBrgb(85, 64, 186)
HSLhsl(250, 49%, 49%)
HSVhsv(250, 66%, 73%)
CMYKcmyk(54.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(36.26, 41.55, -61.53)
CIE-LCHlch(36.26, 74.25, 304.03°)
OKLaboklab(46.82% 0.0465 -0.1767)
OKLCHoklch(46.82% 0.183 284.7)
XYZxyz(14.4400, 9.1424, 47.4486)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540BA #A5BA40
analogous
#4068BA #5540BA #9240BA
triadic
#5540BA #BA5540 #40BA55
tetradic
#5540BA #BA4068 #A5BA40 #40BA92
square
#5540BA #BA4068 #A5BA40 #40BA92
split-complementary
#5540BA #BA9240 #68BA40
monochromatic
#2B215F #40308C #5540BA #7C6BCC #A499DC

Accessibility & contrast

On white

7.42
#5540BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5540BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5540BA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540BA#FFFFFF#000000##FFFFFF
##5540BA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#295E77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5540ba;
/* rgb */ color: rgb(85, 64, 186);
/* oklch */ color: oklch(46.8% 0.183 284.7);
Tailwind
colors: {
  custom: {
    50: '#8e76d0',
    500: '#5540ba',
    950: '#000000',
  },
}
SCSS
$custom: #5540ba;
$custom-light: #8e76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5540ba",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 250.328,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4682,
    "c": 0.18275,
    "h": 284.7
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#5540BA
secondary
#BEC88E
accent
#D84FC1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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