#C042BD#C042BD

#C042BD is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.0% C 0.212 H 328.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C042BD
RGBrgb(192, 66, 189)
HSLhsl(301, 50%, 51%)
HSVhsv(301, 66%, 75%)
CMYKcmyk(0%, 65.6%, 1.6%, 24.7%)
CIE-LABlab(50.43, 64.64, -39.80)
CIE-LCHlch(50.43, 75.91, 328.38°)
OKLaboklab(60.03% 0.1814 -0.1098)
OKLCHoklch(60.03% 0.212 328.8)
XYZxyz(32.8714, 18.7793, 50.0277)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042BD #42C045
analogous
#8442C0 #C042BD #C0427E
triadic
#C042BD #BDC042 #42BDC0
tetradic
#C042BD #C08442 #42C045 #427EC0
square
#C042BD #C08442 #42C045 #427EC0
split-complementary
#C042BD #7EC042 #42C084
monochromatic
#662264 #943191 #C042BD #CF70CD #DF9EDD

Accessibility & contrast

On white

4.42
#C042BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#C042BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042BD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042BD#FFFFFF#000000##000000
##C042BD1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#336DC1
Deuteranopia (green-blind)
#637EBA
Tritanopia (blue-blind)
#C6527A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c042bd;
/* rgb */ color: rgb(192, 66, 189);
/* oklch */ color: oklch(60.0% 0.212 328.8);
Tailwind
colors: {
  custom: {
    50: '#d680d1',
    500: '#c042bd',
    950: '#000000',
  },
}
SCSS
$custom: #c042bd;
$custom-light: #d680d1;
$custom-dark: #000000;
JSON
{
  "hex": "#c042bd",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 301.429,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60027,
    "c": 0.21208,
    "h": 328.8
  },
  "luminance": 0.18777
}

Semantic roles & 50–950 ramp

primary
#C042BD
secondary
#93CB94
accent
#DA524E
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C042BD

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

Preview Lab → · Contrast checker → · Palette generator →

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