#C542C7#C542C7

#C542C7 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.223 H 327.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C542C7
RGBrgb(197, 66, 199)
HSLhsl(299, 54%, 52%)
HSVhsv(299, 67%, 78%)
CMYKcmyk(1%, 66.8%, 0%, 22%)
CIE-LABlab(51.72, 67.47, -43.49)
CIE-LCHlch(51.72, 80.27, 327.19°)
OKLaboklab(61.28% 0.1872 -0.1204)
OKLCHoklch(61.28% 0.223 327.2)
XYZxyz(35.2824, 19.8926, 56.0031)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542C7 #44C742
analogous
#8342C7 #C542C7 #C74286
triadic
#C542C7 #C7C542 #42C7C5
tetradic
#C542C7 #C78342 #44C742 #4286C7
square
#C542C7 #C78342 #44C742 #4286C7
split-complementary
#C542C7 #86C742 #42C783
monochromatic
#6D216E #9C2F9D #C542C7 #D371D5 #E2A0E3

Accessibility & contrast

On white

4.22
#C542C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#C542C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542C7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542C7#FFFFFF#000000##000000
##C542C71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C70CB
Deuteranopia (green-blind)
#6281C4
Tritanopia (blue-blind)
#CB557F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c542c7;
/* rgb */ color: rgb(197, 66, 199);
/* oklch */ color: oklch(61.3% 0.223 327.2);
Tailwind
colors: {
  custom: {
    50: '#da81d8',
    500: '#c542c7',
    950: '#000000',
  },
}
SCSS
$custom: #c542c7;
$custom-light: #da81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c542c7",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 299.098,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61275,
    "c": 0.2226,
    "h": 327.2
  },
  "luminance": 0.1989
}

Semantic roles & 50–950 ramp

primary
#C542C7
secondary
#96D095
accent
#DE4A4C
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C542C7

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

Preview Lab → · Contrast checker → · Palette generator →

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