#C542D3#C542D3

#C542D3 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 62.0% C 0.232 H 323.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#C542D3
RGBrgb(197, 66, 211)
HSLhsl(294, 62%, 54%)
HSVhsv(294, 69%, 83%)
CMYKcmyk(6.6%, 68.7%, 0%, 17.3%)
CIE-LABlab(52.37, 69.51, -49.34)
CIE-LCHlch(52.37, 85.24, 324.63°)
OKLaboklab(61.95% 0.1873 -0.1374)
OKLCHoklch(61.95% 0.232 323.7)
XYZxyz(36.7310, 20.4721, 63.6322)
Luminance0.2047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542D3 #50D342
analogous
#7D42D3 #C542D3 #D34299
triadic
#C542D3 #D3C542 #42D3C5
tetradic
#C542D3 #D37D42 #50D342 #4299D3
square
#C542D3 #D37D42 #50D342 #4299D3
split-complementary
#C542D3 #99D342 #42D37D
monochromatic
#741D7D #A229AF #C542D3 #D474DF #E3A5EA

Accessibility & contrast

On white

4.12
#C542D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#C542D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542D3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542D3#FFFFFF#000000##000000
##C542D31.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1873D7
Deuteranopia (green-blind)
#5B82CF
Tritanopia (blue-blind)
#C85A86
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c542d3;
/* rgb */ color: rgb(197, 66, 211);
/* oklch */ color: oklch(62.0% 0.232 323.7);
Tailwind
colors: {
  custom: {
    50: '#da81e1',
    500: '#c542d3',
    950: '#000000',
  },
}
SCSS
$custom: #c542d3;
$custom-light: #da81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#c542d3",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 294.207,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61954,
    "c": 0.23228,
    "h": 323.7
  },
  "luminance": 0.2047
}

Semantic roles & 50–950 ramp

primary
#C542D3
secondary
#A0D79A
accent
#E54252
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C542D3

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

Preview Lab → · Contrast checker → · Palette generator →

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