#C842B1#C842B1

#C842B1 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.208 H 335.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#C842B1
RGBrgb(200, 66, 177)
HSLhsl(310, 55%, 52%)
HSVhsv(310, 67%, 78%)
CMYKcmyk(0%, 67%, 11.5%, 21.6%)
CIE-LABlab(51.10, 64.69, -31.67)
CIE-LCHlch(51.10, 72.02, 333.92°)
OKLaboklab(60.57% 0.1888 -0.0863)
OKLCHoklch(60.57% 0.208 335.4)
XYZxyz(33.7038, 19.3530, 43.5469)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B1 #42C859
analogous
#9C42C8 #C842B1 #C8426E
triadic
#C842B1 #B1C842 #42B1C8
tetradic
#C842B1 #C89C42 #42C859 #426EC8
square
#C842B1 #C89C42 #42C859 #426EC8
split-complementary
#C842B1 #6EC842 #42C89C
monochromatic
#6F2062 #9F2E8B #C842B1 #D671C5 #E4A1D8

Accessibility & contrast

On white

4.31
#C842B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#C842B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B1#FFFFFF#000000##000000
##C842B11.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#426DB4
Deuteranopia (green-blind)
#6F81AE
Tritanopia (blue-blind)
#D24B74
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b1;
/* rgb */ color: rgb(200, 66, 177);
/* oklch */ color: oklch(60.6% 0.208 335.4);
Tailwind
colors: {
  custom: {
    50: '#dc81c8',
    500: '#c842b1',
    950: '#000000',
  },
}
SCSS
$custom: #c842b1;
$custom-light: #dc81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b1",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 310.299,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60567,
    "c": 0.20754,
    "h": 335.4
  },
  "luminance": 0.1935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C842B1

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

Preview Lab → · Contrast checker → · Palette generator →

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