#C042BB#C042BB

#C042BB is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.9% C 0.210 H 329.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C042BB
RGBrgb(192, 66, 187)
HSLhsl(302, 50%, 51%)
HSVhsv(302, 66%, 75%)
CMYKcmyk(0%, 65.6%, 2.6%, 24.7%)
CIE-LABlab(50.33, 64.31, -38.80)
CIE-LCHlch(50.33, 75.10, 328.90°)
OKLaboklab(59.92% 0.1813 -0.1069)
OKLCHoklch(59.92% 0.21 329.5)
XYZxyz(32.6558, 18.6931, 48.8922)
Luminance0.1869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042BB #42C047
analogous
#8642C0 #C042BB #C0427C
triadic
#C042BB #BBC042 #42BBC0
tetradic
#C042BB #C08642 #42C047 #427CC0
square
#C042BB #C08642 #42C047 #427CC0
split-complementary
#C042BB #7CC042 #42C086
monochromatic
#662263 #943190 #C042BB #CF70CC #DF9EDC

Accessibility & contrast

On white

4.43
#C042BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#C042BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042BB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042BB#FFFFFF#000000##000000
##C042BB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#356DBF
Deuteranopia (green-blind)
#647EB8
Tritanopia (blue-blind)
#C75179
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c042bb;
/* rgb */ color: rgb(192, 66, 187);
/* oklch */ color: oklch(59.9% 0.210 329.5);
Tailwind
colors: {
  custom: {
    50: '#d680d0',
    500: '#c042bb',
    950: '#000000',
  },
}
SCSS
$custom: #c042bb;
$custom-light: #d680d0;
$custom-dark: #000000;
JSON
{
  "hex": "#c042bb",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 302.381,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5992,
    "c": 0.21049,
    "h": 329.5
  },
  "luminance": 0.18691
}

Semantic roles & 50–950 ramp

primary
#C042BB
secondary
#93CB95
accent
#DA544E
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C042BB

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

Preview Lab → · Contrast checker → · Palette generator →

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