#C540D9#C540D9

#C540D9 is a light, highly saturated purple. Relative luminance 0.205; OKLCH L 62.1% C 0.239 H 322.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C540D9
RGBrgb(197, 64, 217)
HSLhsl(292, 67%, 55%)
HSVhsv(292, 71%, 85%)
CMYKcmyk(9.2%, 70.5%, 0%, 14.9%)
CIE-LABlab(52.45, 71.28, -52.62)
CIE-LCHlch(52.45, 88.60, 323.56°)
OKLaboklab(62.12% 0.1891 -0.147)
OKLCHoklch(62.12% 0.239 322.1)
XYZxyz(37.3824, 20.5490, 67.6295)
Luminance0.2055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540D9 #54D940
analogous
#7940D9 #C540D9 #D940A0
triadic
#C540D9 #D9C540 #40D9C5
tetradic
#C540D9 #D97940 #54D940 #40A0D9
square
#C540D9 #D97940 #54D940 #40A0D9
split-complementary
#C540D9 #A0D940 #40D979
monochromatic
#761A84 #A424B7 #C540D9 #D573E3 #E4A6ED

Accessibility & contrast

On white

4.11
#C540D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#C540D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540D9
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540D9#FFFFFF#000000##000000
##C540D91.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#5582D5
Tritanopia (blue-blind)
#C75C89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c540d9;
/* rgb */ color: rgb(197, 64, 217);
/* oklch */ color: oklch(62.1% 0.239 322.1);
Tailwind
colors: {
  custom: {
    50: '#db81e5',
    500: '#c540d9',
    950: '#000000',
  },
}
SCSS
$custom: #c540d9;
$custom-light: #db81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c540d9",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 292.157,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62124,
    "c": 0.23947,
    "h": 322.1
  },
  "luminance": 0.20547
}

Semantic roles & 50–950 ramp

primary
#C540D9
secondary
#A3DA9A
accent
#EA3E55
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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