#5540C8#5540C8

#5540C8 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.200 H 282.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5540C8
RGBrgb(85, 64, 200)
HSLhsl(249, 55%, 52%)
HSVhsv(249, 68%, 78%)
CMYKcmyk(57.5%, 68%, 0%, 21.6%)
CIE-LABlab(37.42, 45.82, -67.82)
CIE-LCHlch(37.42, 81.85, 304.04°)
OKLaboklab(48.02% 0.0446 -0.1952)
OKLCHoklch(48.02% 0.2 282.9)
XYZxyz(16.0018, 9.7672, 55.6744)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540C8 #B3C840
analogous
#406FC8 #5540C8 #9940C8
triadic
#5540C8 #C85540 #40C855
tetradic
#5540C8 #C8406F #B3C840 #40C899
square
#5540C8 #C8406F #B3C840 #40C899
split-complementary
#5540C8 #C89940 #6FC840
monochromatic
#2C206E #3F2D9D #5540C8 #7F70D6 #AA9FE3

Accessibility & contrast

On white

7.11
#5540C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5540C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5540C8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540C8#FFFFFF#000000##FFFFFF
##5540C81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#14637F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5540c8;
/* rgb */ color: rgb(85, 64, 200);
/* oklch */ color: oklch(48.0% 0.200 282.9);
Tailwind
colors: {
  custom: {
    50: '#9177da',
    500: '#5540c8',
    950: '#000000',
  },
}
SCSS
$custom: #5540c8;
$custom-light: #9177da;
$custom-dark: #000000;
JSON
{
  "hex": "#5540c8",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 249.265,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48019,
    "c": 0.20024,
    "h": 282.9
  },
  "luminance": 0.09768
}

Semantic roles & 50–950 ramp

primary
#5540C8
secondary
#C7D094
accent
#DF49C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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