#C540CE#C540CE

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

Color values

HEX#C540CE
RGBrgb(197, 64, 206)
HSLhsl(296, 59%, 53%)
HSVhsv(296, 69%, 81%)
CMYKcmyk(4.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(51.83, 69.38, -47.33)
CIE-LCHlch(51.83, 83.99, 325.70°)
OKLaboklab(61.48% 0.1893 -0.1315)
OKLCHoklch(61.48% 0.231 325.2)
XYZxyz(35.9991, 19.9956, 60.3440)
Luminance0.1999 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540CE #49CE40
analogous
#7E40CE #C540CE #CE4090
triadic
#C540CE #CEC540 #40CEC5
tetradic
#C540CE #CE7E40 #49CE40 #4090CE
square
#C540CE #CE7E40 #49CE40 #4090CE
split-complementary
#C540CE #90CE40 #40CE7E
monochromatic
#701E75 #9E2BA6 #C540CE #D471DA #E3A1E7

Accessibility & contrast

On white

4.20
#C540CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#C540CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540CE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540CE#FFFFFF#000000##000000
##C540CE1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c540ce;
/* rgb */ color: rgb(197, 64, 206);
/* oklch */ color: oklch(61.5% 0.231 325.2);
Tailwind
colors: {
  custom: {
    50: '#da80dd',
    500: '#c540ce',
    950: '#000000',
  },
}
SCSS
$custom: #c540ce;
$custom-light: #da80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c540ce",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 296.197,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61481,
    "c": 0.23055,
    "h": 325.2
  },
  "luminance": 0.19993
}

Semantic roles & 50–950 ramp

primary
#C540CE
secondary
#9AD496
accent
#E2454F
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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