#C540BB#C540BB

#C540BB is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.4% C 0.216 H 331.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C540BB
RGBrgb(197, 64, 187)
HSLhsl(305, 53%, 51%)
HSVhsv(305, 68%, 77%)
CMYKcmyk(0%, 67.5%, 5.1%, 22.7%)
CIE-LABlab(50.84, 66.25, -37.94)
CIE-LCHlch(50.84, 76.35, 330.20°)
OKLaboklab(60.44% 0.1888 -0.1043)
OKLCHoklch(60.44% 0.216 331.1)
XYZxyz(33.8289, 19.1275, 48.9143)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540BB #40C54A
analogous
#8C40C5 #C540BB #C54078
triadic
#C540BB #BBC540 #40BBC5
tetradic
#C540BB #C58C40 #40C54A #4078C5
square
#C540BB #C58C40 #40C54A #4078C5
split-complementary
#C540BB #78C540 #40C58C
monochromatic
#6A2065 #992F91 #C540BB #D36FCC #E29EDC

Accessibility & contrast

On white

4.35
#C540BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#C540BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540BB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540BB#FFFFFF#000000##000000
##C540BB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#366DBF
Deuteranopia (green-blind)
#6780B8
Tritanopia (blue-blind)
#CD4F78
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540bb;
/* rgb */ color: rgb(197, 64, 187);
/* oklch */ color: oklch(60.4% 0.216 331.1);
Tailwind
colors: {
  custom: {
    50: '#da80d0',
    500: '#c540bb',
    950: '#000000',
  },
}
SCSS
$custom: #c540bb;
$custom-light: #da80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#c540bb",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 304.511,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60441,
    "c": 0.21569,
    "h": 331.1
  },
  "luminance": 0.19125
}

Semantic roles & 50–950 ramp

primary
#C540BB
secondary
#93CE97
accent
#DD564B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C540BB

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

Preview Lab → · Contrast checker → · Palette generator →

#C540BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva