#C842B0#C842B0

#C842B0 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.207 H 335.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C842B0
RGBrgb(200, 66, 176)
HSLhsl(311, 55%, 52%)
HSVhsv(311, 67%, 78%)
CMYKcmyk(0%, 67%, 12%, 21.6%)
CIE-LABlab(51.05, 64.54, -31.16)
CIE-LCHlch(51.05, 71.67, 334.23°)
OKLaboklab(60.52% 0.1886 -0.0848)
OKLCHoklch(60.52% 0.207 335.8)
XYZxyz(33.6045, 19.3132, 43.0238)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B0 #42C85A
analogous
#9D42C8 #C842B0 #C8426D
triadic
#C842B0 #B0C842 #42B0C8
tetradic
#C842B0 #C89D42 #42C85A #426DC8
square
#C842B0 #C89D42 #42C85A #426DC8
split-complementary
#C842B0 #6DC842 #42C89D
monochromatic
#6F2061 #9F2E8A #C842B0 #D671C4 #E4A1D8

Accessibility & contrast

On white

4.32
#C842B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C842B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B0
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B0#FFFFFF#000000##000000
##C842B01.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#436DB3
Deuteranopia (green-blind)
#6F81AD
Tritanopia (blue-blind)
#D24B73
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b0;
/* rgb */ color: rgb(200, 66, 176);
/* oklch */ color: oklch(60.5% 0.207 335.8);
Tailwind
colors: {
  custom: {
    50: '#dc81c8',
    500: '#c842b0',
    950: '#000000',
  },
}
SCSS
$custom: #c842b0;
$custom-light: #dc81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b0",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 310.746,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60519,
    "c": 0.20681,
    "h": 335.8
  },
  "luminance": 0.1931
}

Semantic roles & 50–950 ramp

primary
#C842B0
secondary
#96D0A0
accent
#DE644A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82

Preview Lab

Preview with #C842B0

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

Preview Lab → · Contrast checker → · Palette generator →

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