#C542D2#C542D2

#C542D2 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.231 H 324.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#C542D2
RGBrgb(197, 66, 210)
HSLhsl(295, 62%, 54%)
HSVhsv(295, 69%, 82%)
CMYKcmyk(6.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(52.31, 69.34, -48.86)
CIE-LCHlch(52.31, 84.82, 324.83°)
OKLaboklab(61.9% 0.1873 -0.136)
OKLCHoklch(61.9% 0.231 324)
XYZxyz(36.6060, 20.4221, 62.9740)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542D2 #4FD242
analogous
#7D42D2 #C542D2 #D24297
triadic
#C542D2 #D2C542 #42D2C5
tetradic
#C542D2 #D27D42 #4FD242 #4297D2
square
#C542D2 #D27D42 #4FD242 #4297D2
split-complementary
#C542D2 #97D242 #42D27D
monochromatic
#741E7C #A229AD #C542D2 #D473DE #E3A5EA

Accessibility & contrast

On white

4.13
#C542D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#C542D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542D2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542D2#FFFFFF#000000##000000
##C542D21.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A73D6
Deuteranopia (green-blind)
#5B82CE
Tritanopia (blue-blind)
#C95A85
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c542d2;
/* rgb */ color: rgb(197, 66, 210);
/* oklch */ color: oklch(61.9% 0.231 324.0);
Tailwind
colors: {
  custom: {
    50: '#da81e0',
    500: '#c542d2',
    950: '#000000',
  },
}
SCSS
$custom: #c542d2;
$custom-light: #da81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c542d2",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 294.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61896,
    "c": 0.23147,
    "h": 324
  },
  "luminance": 0.2042
}

Semantic roles & 50–950 ramp

primary
#C542D2
secondary
#9FD799
accent
#E54352
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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