#C542BF#C542BF

#C542BF is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.216 H 329.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#C542BF
RGBrgb(197, 66, 191)
HSLhsl(303, 53%, 52%)
HSVhsv(303, 66%, 77%)
CMYKcmyk(0%, 66.5%, 3%, 22.7%)
CIE-LABlab(51.30, 66.15, -39.53)
CIE-LCHlch(51.30, 77.06, 329.14°)
OKLaboklab(60.84% 0.1869 -0.1089)
OKLCHoklch(60.84% 0.216 329.8)
XYZxyz(34.3779, 19.5308, 51.2393)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542BF #42C548
analogous
#8A42C5 #C542BF #C5427E
triadic
#C542BF #BFC542 #42BFC5
tetradic
#C542BF #C58A42 #42C548 #427EC5
square
#C542BF #C58A42 #42C548 #427EC5
split-complementary
#C542BF #7EC542 #42C58A
monochromatic
#6C2168 #9A2F96 #C542BF #D371CF #E2A0DF

Accessibility & contrast

On white

4.28
#C542BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#C542BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542BF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542BF#FFFFFF#000000##000000
##C542BF1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#356FC3
Deuteranopia (green-blind)
#6681BC
Tritanopia (blue-blind)
#CC527B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c542bf;
/* rgb */ color: rgb(197, 66, 191);
/* oklch */ color: oklch(60.8% 0.216 329.8);
Tailwind
colors: {
  custom: {
    50: '#da81d3',
    500: '#c542bf',
    950: '#000000',
  },
}
SCSS
$custom: #c542bf;
$custom-light: #da81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c542bf",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 302.748,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60844,
    "c": 0.2163,
    "h": 329.8
  },
  "luminance": 0.19528
}

Semantic roles & 50–950 ramp

primary
#C542BF
secondary
#95CE97
accent
#DC524B
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C542BF

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

Preview Lab → · Contrast checker → · Palette generator →

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