#C842BD#C842BD

#C842BD is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.216 H 331.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C842BD
RGBrgb(200, 66, 189)
HSLhsl(305, 55%, 52%)
HSVhsv(305, 67%, 78%)
CMYKcmyk(0%, 67%, 5.5%, 21.6%)
CIE-LABlab(51.67, 66.54, -37.76)
CIE-LCHlch(51.67, 76.51, 330.43°)
OKLaboklab(61.17% 0.1899 -0.1038)
OKLCHoklch(61.17% 0.216 331.3)
XYZxyz(34.9529, 19.8526, 50.1253)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842BD #42C84D
analogous
#9042C8 #C842BD #C8427A
triadic
#C842BD #BDC842 #42BDC8
tetradic
#C842BD #C89042 #42C84D #427AC8
square
#C842BD #C89042 #42C84D #427AC8
split-complementary
#C842BD #7AC842 #42C890
monochromatic
#6F2069 #9F2E95 #C842BD #D671CE #E4A1DE

Accessibility & contrast

On white

4.23
#C842BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C842BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842BD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842BD#FFFFFF#000000##000000
##C842BD1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#396FC1
Deuteranopia (green-blind)
#6A82BA
Tritanopia (blue-blind)
#D0507A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c842bd;
/* rgb */ color: rgb(200, 66, 189);
/* oklch */ color: oklch(61.2% 0.216 331.3);
Tailwind
colors: {
  custom: {
    50: '#dc81d1',
    500: '#c842bd',
    950: '#000000',
  },
}
SCSS
$custom: #c842bd;
$custom-light: #dc81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#c842bd",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 304.925,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61168,
    "c": 0.2164,
    "h": 331.3
  },
  "luminance": 0.1985
}

Semantic roles & 50–950 ramp

primary
#C842BD
secondary
#96D09A
accent
#DE564A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C842BD

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

Preview Lab → · Contrast checker → · Palette generator →

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