#5540BB#5540BB

#5540BB is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.184 H 284.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5540BB
RGBrgb(85, 64, 187)
HSLhsl(250, 49%, 49%)
HSVhsv(250, 66%, 73%)
CMYKcmyk(54.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(36.34, 41.86, -61.99)
CIE-LCHlch(36.34, 74.80, 304.03°)
OKLaboklab(46.9% 0.0464 -0.1781)
OKLCHoklch(46.9% 0.184 284.6)
XYZxyz(14.5466, 9.1851, 48.0105)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540BB #A6BB40
analogous
#4069BB #5540BB #9340BB
triadic
#5540BB #BB5540 #40BB55
tetradic
#5540BB #BB4069 #A6BB40 #40BB93
square
#5540BB #BB4069 #A6BB40 #40BB93
split-complementary
#5540BB #BB9340 #69BB40
monochromatic
#2C2160 #40308D #5540BB #7C6CCD #A599DC

Accessibility & contrast

On white

7.40
#5540BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5540BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5540BB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540BB#FFFFFF#000000##FFFFFF
##5540BB1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#285F78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5540bb;
/* rgb */ color: rgb(85, 64, 187);
/* oklch */ color: oklch(46.9% 0.184 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e76d0',
    500: '#5540bb',
    950: '#000000',
  },
}
SCSS
$custom: #5540bb;
$custom-light: #8e76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5540bb",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 250.244,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.18402,
    "h": 284.6
  },
  "luminance": 0.09186
}

Semantic roles & 50–950 ramp

primary
#5540BB
secondary
#BEC88F
accent
#D94FC1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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