#C540CB#C540CB

#C540CB is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.3% C 0.228 H 326.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C540CB
RGBrgb(197, 64, 203)
HSLhsl(297, 57%, 52%)
HSVhsv(297, 68%, 80%)
CMYKcmyk(3%, 68.5%, 0%, 20.4%)
CIE-LABlab(51.67, 68.87, -45.87)
CIE-LCHlch(51.67, 82.75, 326.34°)
OKLaboklab(61.31% 0.1893 -0.1273)
OKLCHoklch(61.31% 0.228 326.1)
XYZxyz(35.6381, 19.8512, 58.4429)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540CB #46CB40
analogous
#7F40CB #C540CB #CB408C
triadic
#C540CB #CBC540 #40CBC5
tetradic
#C540CB #CB7F40 #46CB40 #408CCB
square
#C540CB #CB7F40 #46CB40 #408CCB
split-complementary
#C540CB #8CCB40 #40CB7F
monochromatic
#6E1F72 #9D2CA2 #C540CB #D470D8 #E2A0E5

Accessibility & contrast

On white

4.23
#C540CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C540CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540CB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540CB#FFFFFF#000000##000000
##C540CB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2370CF
Deuteranopia (green-blind)
#5E81C7
Tritanopia (blue-blind)
#CA5681
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c540cb;
/* rgb */ color: rgb(197, 64, 203);
/* oklch */ color: oklch(61.3% 0.228 326.1);
Tailwind
colors: {
  custom: {
    50: '#da80db',
    500: '#c540cb',
    950: '#000000',
  },
}
SCSS
$custom: #c540cb;
$custom-light: #da80db;
$custom-dark: #000000;
JSON
{
  "hex": "#c540cb",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 297.41,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.22816,
    "h": 326.1
  },
  "luminance": 0.19849
}

Semantic roles & 50–950 ramp

primary
#C540CB
secondary
#98D295
accent
#E0474E
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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