#C542BB#C542BB

#C542BB is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.6% C 0.213 H 331.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#C542BB
RGBrgb(197, 66, 187)
HSLhsl(305, 53%, 52%)
HSVhsv(305, 66%, 77%)
CMYKcmyk(0%, 66.5%, 5.1%, 22.7%)
CIE-LABlab(51.10, 65.51, -37.52)
CIE-LCHlch(51.10, 75.49, 330.20°)
OKLaboklab(60.63% 0.1866 -0.1031)
OKLCHoklch(60.63% 0.213 331.1)
XYZxyz(33.9437, 19.3572, 48.9526)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542BB #42C54C
analogous
#8E42C5 #C542BB #C5427A
triadic
#C542BB #BBC542 #42BBC5
tetradic
#C542BB #C58E42 #42C54C #427AC5
square
#C542BB #C58E42 #42C54C #427AC5
split-complementary
#C542BB #7AC542 #42C58E
monochromatic
#6C2166 #9A2F92 #C542BB #D371CC #E2A0DD

Accessibility & contrast

On white

4.31
#C542BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#C542BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542BB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542BB#FFFFFF#000000##000000
##C542BB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#396EBF
Deuteranopia (green-blind)
#6880B8
Tritanopia (blue-blind)
#CD5079
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c542bb;
/* rgb */ color: rgb(197, 66, 187);
/* oklch */ color: oklch(60.6% 0.213 331.1);
Tailwind
colors: {
  custom: {
    50: '#da81d0',
    500: '#c542bb',
    950: '#000000',
  },
}
SCSS
$custom: #c542bb;
$custom-light: #da81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#c542bb",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 304.58,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60634,
    "c": 0.21322,
    "h": 331.1
  },
  "luminance": 0.19355
}

Semantic roles & 50–950 ramp

primary
#C542BB
secondary
#95CE99
accent
#DC564B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C542BB

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

Preview Lab → · Contrast checker → · Palette generator →

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