#C542CF#C542CF

#C542CF is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.229 H 324.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C542CF
RGBrgb(197, 66, 207)
HSLhsl(296, 59%, 54%)
HSVhsv(296, 68%, 81%)
CMYKcmyk(4.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(52.15, 68.82, -47.40)
CIE-LCHlch(52.15, 83.57, 325.44°)
OKLaboklab(61.72% 0.1873 -0.1318)
OKLCHoklch(61.72% 0.229 324.9)
XYZxyz(36.2358, 20.2740, 61.0241)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542CF #4CCF42
analogous
#7E42CF #C542CF #CF4292
triadic
#C542CF #CFC542 #42CFC5
tetradic
#C542CF #CF7E42 #4CCF42 #4292CF
square
#C542CF #CF7E42 #4CCF42 #4292CF
split-complementary
#C542CF #92CF42 #42CF7E
monochromatic
#721F78 #A02BA9 #C542CF #D473DB #E3A4E8

Accessibility & contrast

On white

4.15
#C542CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#C542CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542CF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542CF#FFFFFF#000000##000000
##C542CF1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2072D3
Deuteranopia (green-blind)
#5D82CB
Tritanopia (blue-blind)
#C95984
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c542cf;
/* rgb */ color: rgb(197, 66, 207);
/* oklch */ color: oklch(61.7% 0.229 324.9);
Tailwind
colors: {
  custom: {
    50: '#da81de',
    500: '#c542cf',
    950: '#000000',
  },
}
SCSS
$custom: #c542cf;
$custom-light: #da81de;
$custom-dark: #000000;
JSON
{
  "hex": "#c542cf",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 295.745,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61724,
    "c": 0.22903,
    "h": 324.9
  },
  "luminance": 0.20272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C542CF

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

Preview Lab → · Contrast checker → · Palette generator →

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