#C540CF#C540CF

#C540CF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.5% C 0.231 H 324.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#C540CF
RGBrgb(197, 64, 207)
HSLhsl(296, 60%, 53%)
HSVhsv(296, 69%, 81%)
CMYKcmyk(4.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(51.89, 69.55, -47.81)
CIE-LCHlch(51.89, 84.40, 325.49°)
OKLaboklab(61.54% 0.1893 -0.133)
OKLCHoklch(61.54% 0.231 324.9)
XYZxyz(36.1210, 20.0444, 60.9858)
Luminance0.2004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540CF #4ACF40
analogous
#7D40CF #C540CF #CF4091
triadic
#C540CF #CFC540 #40CFC5
tetradic
#C540CF #CF7D40 #4ACF40 #4091CF
square
#C540CF #CF7D40 #4ACF40 #4091CF
split-complementary
#C540CF #91CF40 #40CF7D
monochromatic
#711E77 #9F2AA8 #C540CF #D471DB #E3A2E8

Accessibility & contrast

On white

4.19
#C540CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#C540CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540CF#FFFFFF#000000##000000
##C540CF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B71D3
Deuteranopia (green-blind)
#5C81CB
Tritanopia (blue-blind)
#C95783
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c540cf;
/* rgb */ color: rgb(197, 64, 207);
/* oklch */ color: oklch(61.5% 0.231 324.9);
Tailwind
colors: {
  custom: {
    50: '#da80de',
    500: '#c540cf',
    950: '#000000',
  },
}
SCSS
$custom: #c540cf;
$custom-light: #da80de;
$custom-dark: #000000;
JSON
{
  "hex": "#c540cf",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 295.804,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61538,
    "c": 0.23136,
    "h": 324.9
  },
  "luminance": 0.20042
}

Semantic roles & 50–950 ramp

primary
#C540CF
secondary
#9BD497
accent
#E34550
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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