#C542B2#C542B2

#C542B2 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.2% C 0.206 H 334.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C542B2
RGBrgb(197, 66, 178)
HSLhsl(309, 53%, 52%)
HSVhsv(309, 66%, 77%)
CMYKcmyk(0%, 66.5%, 9.6%, 22.7%)
CIE-LABlab(50.67, 64.10, -32.96)
CIE-LCHlch(50.67, 72.07, 332.79°)
OKLaboklab(60.18% 0.1858 -0.09)
OKLCHoklch(60.18% 0.206 334.1)
XYZxyz(33.0103, 18.9838, 44.0365)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C542B2 #42C555
analogous
#9742C5 #C542B2 #C54271
triadic
#C542B2 #B2C542 #42B2C5
tetradic
#C542B2 #C59742 #42C555 #4271C5
square
#C542B2 #C59742 #42C555 #4271C5
split-complementary
#C542B2 #71C542 #42C597
monochromatic
#6C2161 #9A2F8B #C542B2 #D371C5 #E2A0D8

Accessibility & contrast

On white

4.38
#C542B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#C542B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C542B2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C542B2#FFFFFF#000000##000000
##C542B21.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#6C80AF
Tritanopia (blue-blind)
#CE4C74
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c542b2;
/* rgb */ color: rgb(197, 66, 178);
/* oklch */ color: oklch(60.2% 0.206 334.1);
Tailwind
colors: {
  custom: {
    50: '#da80c9',
    500: '#c542b2',
    950: '#000000',
  },
}
SCSS
$custom: #c542b2;
$custom-light: #da80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c542b2",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 308.702,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60178,
    "c": 0.20646,
    "h": 334.1
  },
  "luminance": 0.18981
}

Semantic roles & 50–950 ramp

primary
#C542B2
secondary
#95CE9D
accent
#DC604B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C542B2

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

Preview Lab → · Contrast checker → · Palette generator →

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