#C842BB#C842BB

#C842BB is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.1% C 0.215 H 332.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#C842BB
RGBrgb(200, 66, 187)
HSLhsl(306, 55%, 52%)
HSVhsv(306, 67%, 78%)
CMYKcmyk(0%, 67%, 6.5%, 21.6%)
CIE-LABlab(51.57, 66.22, -36.75)
CIE-LCHlch(51.57, 75.74, 330.97°)
OKLaboklab(61.07% 0.1898 -0.1009)
OKLCHoklch(61.07% 0.215 332)
XYZxyz(34.7373, 19.7664, 48.9898)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842BB #42C84F
analogous
#9242C8 #C842BB #C84278
triadic
#C842BB #BBC842 #42BBC8
tetradic
#C842BB #C89242 #42C84F #4278C8
square
#C842BB #C89242 #42C84F #4278C8
split-complementary
#C842BB #78C842 #42C892
monochromatic
#6F2068 #9F2E94 #C842BB #D671CC #E4A1DD

Accessibility & contrast

On white

4.24
#C842BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#C842BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842BB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842BB#FFFFFF#000000##000000
##C842BB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6FBE
Deuteranopia (green-blind)
#6B82B8
Tritanopia (blue-blind)
#D04F79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c842bb;
/* rgb */ color: rgb(200, 66, 187);
/* oklch */ color: oklch(61.1% 0.215 332.0);
Tailwind
colors: {
  custom: {
    50: '#dc81d0',
    500: '#c842bb',
    950: '#000000',
  },
}
SCSS
$custom: #c842bb;
$custom-light: #dc81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#c842bb",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 305.821,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61065,
    "c": 0.21489,
    "h": 332
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

primary
#C842BB
secondary
#96D09B
accent
#DE584A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C842BB

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

Preview Lab → · Contrast checker → · Palette generator →

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