#C542CD#C542CD

#C542CD is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.227 H 325.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C542CD
RGBrgb(197, 66, 205)
HSLhsl(297, 58%, 53%)
HSVhsv(297, 68%, 80%)
CMYKcmyk(3.9%, 67.8%, 0%, 19.6%)
CIE-LABlab(52.04, 68.48, -46.43)
CIE-LCHlch(52.04, 82.74, 325.86°)
OKLaboklab(61.61% 0.1873 -0.129)
OKLCHoklch(61.61% 0.227 325.5)
XYZxyz(35.9928, 20.1768, 59.7445)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542CD #4ACD42
analogous
#7F42CD #C542CD #CD428F
triadic
#C542CD #CDC542 #42CDC5
tetradic
#C542CD #CD7F42 #4ACD42 #428FCD
square
#C542CD #CD7F42 #4ACD42 #428FCD
split-complementary
#C542CD #8FCD42 #42CD7F
monochromatic
#711F76 #9F2CA6 #C542CD #D472DA #E3A3E7

Accessibility & contrast

On white

4.17
#C542CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#C542CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542CD#FFFFFF#000000##000000
##C542CD1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2472D1
Deuteranopia (green-blind)
#5E82C9
Tritanopia (blue-blind)
#CA5883
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c542cd;
/* rgb */ color: rgb(197, 66, 205);
/* oklch */ color: oklch(61.6% 0.227 325.5);
Tailwind
colors: {
  custom: {
    50: '#da81dd',
    500: '#c542cd',
    950: '#000000',
  },
}
SCSS
$custom: #c542cd;
$custom-light: #da81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c542cd",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 296.547,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6161,
    "c": 0.22741,
    "h": 325.5
  },
  "luminance": 0.20175
}

Semantic roles & 50–950 ramp

primary
#C542CD
secondary
#9BD397
accent
#E1464F
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C542CD

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

Preview Lab → · Contrast checker → · Palette generator →

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