#5540BC#5540BC

#5540BC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.185 H 284.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5540BC
RGBrgb(85, 64, 188)
HSLhsl(250, 49%, 49%)
HSVhsv(250, 66%, 74%)
CMYKcmyk(54.8%, 66%, 0%, 26.3%)
CIE-LABlab(36.42, 42.16, -62.44)
CIE-LCHlch(36.42, 75.34, 304.03°)
OKLaboklab(46.99% 0.0463 -0.1794)
OKLCHoklch(46.99% 0.185 284.5)
XYZxyz(14.6541, 9.2281, 48.5762)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540BC #A7BC40
analogous
#4069BC #5540BC #9340BC
triadic
#5540BC #BC5540 #40BC55
tetradic
#5540BC #BC4069 #A7BC40 #40BC93
square
#5540BC #BC4069 #A7BC40 #40BC93
split-complementary
#5540BC #BC9340 #69BC40
monochromatic
#2C2161 #40308E #5540BC #7D6CCD #A59ADD

Accessibility & contrast

On white

7.38
#5540BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5540BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5540BC
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540BC#FFFFFF#000000##FFFFFF
##5540BC1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#275F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5540bc;
/* rgb */ color: rgb(85, 64, 188);
/* oklch */ color: oklch(47.0% 0.185 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f76d1',
    500: '#5540bc',
    950: '#000000',
  },
}
SCSS
$custom: #5540bc;
$custom-light: #8f76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5540bc",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 250.161,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.18529,
    "h": 284.5
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#5540BC
secondary
#BFC98F
accent
#D94FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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