#C542BA#C542BA

#C542BA is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.6% C 0.212 H 331.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C542BA
RGBrgb(197, 66, 186)
HSLhsl(305, 53%, 52%)
HSVhsv(305, 66%, 77%)
CMYKcmyk(0%, 66.5%, 5.6%, 22.7%)
CIE-LABlab(51.05, 65.35, -37.02)
CIE-LCHlch(51.05, 75.10, 330.47°)
OKLaboklab(60.58% 0.1865 -0.1017)
OKLCHoklch(60.58% 0.212 331.4)
XYZxyz(33.8370, 19.3145, 48.3908)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542BA #42C54D
analogous
#8F42C5 #C542BA #C54279
triadic
#C542BA #BAC542 #42BAC5
tetradic
#C542BA #C58F42 #42C54D #4279C5
square
#C542BA #C58F42 #42C54D #4279C5
split-complementary
#C542BA #79C542 #42C58F
monochromatic
#6C2165 #9A2F91 #C542BA #D371CB #E2A0DC

Accessibility & contrast

On white

4.32
#C542BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C542BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542BA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542BA#FFFFFF#000000##000000
##C542BA1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBD
Deuteranopia (green-blind)
#6980B7
Tritanopia (blue-blind)
#CD5079
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c542ba;
/* rgb */ color: rgb(197, 66, 186);
/* oklch */ color: oklch(60.6% 0.212 331.4);
Tailwind
colors: {
  custom: {
    50: '#da81cf',
    500: '#c542ba',
    950: '#000000',
  },
}
SCSS
$custom: #c542ba;
$custom-light: #da81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c542ba",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 305.038,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60582,
    "c": 0.21246,
    "h": 331.4
  },
  "luminance": 0.19312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C542BA

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

Preview Lab → · Contrast checker → · Palette generator →

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