#C842B4#C842B4

#C842B4 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.7% C 0.210 H 334.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C842B4
RGBrgb(200, 66, 180)
HSLhsl(309, 55%, 52%)
HSVhsv(309, 67%, 78%)
CMYKcmyk(0%, 67%, 10%, 21.6%)
CIE-LABlab(51.24, 65.14, -33.20)
CIE-LCHlch(51.24, 73.12, 332.99°)
OKLaboklab(60.71% 0.1891 -0.0907)
OKLCHoklch(60.71% 0.21 334.4)
XYZxyz(34.0061, 19.4739, 45.1390)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B4 #42C856
analogous
#9942C8 #C842B4 #C84271
triadic
#C842B4 #B4C842 #42B4C8
tetradic
#C842B4 #C89942 #42C856 #4271C8
square
#C842B4 #C89942 #42C856 #4271C8
split-complementary
#C842B4 #71C842 #42C899
monochromatic
#6F2063 #9F2E8E #C842B4 #D671C7 #E4A1DA

Accessibility & contrast

On white

4.29
#C842B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C842B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B4#FFFFFF#000000##000000
##C842B41.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#406DB7
Deuteranopia (green-blind)
#6E81B1
Tritanopia (blue-blind)
#D14C75
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b4;
/* rgb */ color: rgb(200, 66, 180);
/* oklch */ color: oklch(60.7% 0.210 334.4);
Tailwind
colors: {
  custom: {
    50: '#dc81cb',
    500: '#c842b4',
    950: '#000000',
  },
}
SCSS
$custom: #c842b4;
$custom-light: #dc81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b4",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 308.955,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60714,
    "c": 0.20971,
    "h": 334.4
  },
  "luminance": 0.19471
}

Semantic roles & 50–950 ramp

primary
#C842B4
secondary
#96D09E
accent
#DE604A
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C842B4

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

Preview Lab → · Contrast checker → · Palette generator →

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