#5540BD#5540BD

#5540BD is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.187 H 284.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5540BD
RGBrgb(85, 64, 189)
HSLhsl(250, 49%, 50%)
HSVhsv(250, 66%, 74%)
CMYKcmyk(55%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.50, 42.47, -62.90)
CIE-LCHlch(36.50, 75.89, 304.03°)
OKLaboklab(47.07% 0.0461 -0.1807)
OKLCHoklch(47.07% 0.187 284.3)
XYZxyz(14.7622, 9.2714, 49.1459)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540BD #A8BD40
analogous
#406ABD #5540BD #9440BD
triadic
#5540BD #BD5540 #40BD55
tetradic
#5540BD #BD406A #A8BD40 #40BD94
square
#5540BD #BD406A #A8BD40 #40BD94
split-complementary
#5540BD #BD9440 #6ABD40
monochromatic
#2C2162 #40318F #5540BD #7D6DCD #A69ADD

Accessibility & contrast

On white

7.36
#5540BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5540BD
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540BD#FFFFFF#000000##FFFFFF
##5540BD1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#266079
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5540bd;
/* rgb */ color: rgb(85, 64, 189);
/* oklch */ color: oklch(47.1% 0.187 284.3);
Tailwind
colors: {
  custom: {
    50: '#8f76d2',
    500: '#5540bd',
    950: '#000000',
  },
}
SCSS
$custom: #5540bd;
$custom-light: #8f76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5540bd",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 250.08,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47072,
    "c": 0.18654,
    "h": 284.3
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#5540BD
secondary
#BFC990
accent
#D94FC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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