#C540BD#C540BD

#C540BD is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.5% C 0.217 H 330.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#C540BD
RGBrgb(197, 64, 189)
HSLhsl(304, 53%, 51%)
HSVhsv(304, 68%, 77%)
CMYKcmyk(0%, 67.5%, 4.1%, 22.7%)
CIE-LABlab(50.94, 66.57, -38.94)
CIE-LCHlch(50.94, 77.13, 329.67°)
OKLaboklab(60.55% 0.1889 -0.1072)
OKLCHoklch(60.55% 0.217 330.4)
XYZxyz(34.0445, 19.2138, 50.0498)
Luminance0.1921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540BD #40C548
analogous
#8A40C5 #C540BD #C5407A
triadic
#C540BD #BDC540 #40BDC5
tetradic
#C540BD #C58A40 #40C548 #407AC5
square
#C540BD #C58A40 #40C548 #407AC5
split-complementary
#C540BD #7AC540 #40C58A
monochromatic
#6A2066 #992F93 #C540BD #D36FCD #E29EDD

Accessibility & contrast

On white

4.34
#C540BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#C540BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540BD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540BD#FFFFFF#000000##000000
##C540BD1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#346EC1
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#CC4F79
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540bd;
/* rgb */ color: rgb(197, 64, 189);
/* oklch */ color: oklch(60.5% 0.217 330.4);
Tailwind
colors: {
  custom: {
    50: '#da80d1',
    500: '#c540bd',
    950: '#000000',
  },
}
SCSS
$custom: #c540bd;
$custom-light: #da80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#c540bd",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 303.609,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60546,
    "c": 0.21722,
    "h": 330.4
  },
  "luminance": 0.19211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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