#C542CB#C542CB

#C542CB is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.226 H 326.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C542CB
RGBrgb(197, 66, 203)
HSLhsl(297, 57%, 53%)
HSVhsv(297, 67%, 80%)
CMYKcmyk(3%, 67.5%, 0%, 20.4%)
CIE-LABlab(51.93, 68.14, -45.45)
CIE-LCHlch(51.93, 81.91, 326.29°)
OKLaboklab(61.5% 0.1873 -0.1261)
OKLCHoklch(61.5% 0.226 326)
XYZxyz(35.7530, 20.0809, 58.4812)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542CB #48CB42
analogous
#8042CB #C542CB #CB428D
triadic
#C542CB #CBC542 #42CBC5
tetradic
#C542CB #CB8042 #48CB42 #428DCB
square
#C542CB #CB8042 #48CB42 #428DCB
split-complementary
#C542CB #8DCB42 #42CB80
monochromatic
#6F2073 #9E2DA3 #C542CB #D472D8 #E2A2E5

Accessibility & contrast

On white

4.19
#C542CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#C542CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542CB#FFFFFF#000000##000000
##C542CB1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2771CF
Deuteranopia (green-blind)
#6081C8
Tritanopia (blue-blind)
#CA5782
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c542cb;
/* rgb */ color: rgb(197, 66, 203);
/* oklch */ color: oklch(61.5% 0.226 326.0);
Tailwind
colors: {
  custom: {
    50: '#da81db',
    500: '#c542cb',
    950: '#000000',
  },
}
SCSS
$custom: #c542cb;
$custom-light: #da81db;
$custom-dark: #000000;
JSON
{
  "hex": "#c542cb",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 297.372,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61497,
    "c": 0.2258,
    "h": 326
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

primary
#C542CB
secondary
#99D297
accent
#E0484E
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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