#C842B2#C842B2

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

Color values

HEX#C842B2
RGBrgb(200, 66, 178)
HSLhsl(310, 55%, 52%)
HSVhsv(310, 67%, 78%)
CMYKcmyk(0%, 67%, 11%, 21.6%)
CIE-LABlab(51.14, 64.84, -32.18)
CIE-LCHlch(51.14, 72.39, 333.60°)
OKLaboklab(60.62% 0.1889 -0.0877)
OKLCHoklch(60.62% 0.208 335.1)
XYZxyz(33.8039, 19.3930, 44.0737)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B2 #42C858
analogous
#9B42C8 #C842B2 #C8426F
triadic
#C842B2 #B2C842 #42B2C8
tetradic
#C842B2 #C89B42 #42C858 #426FC8
square
#C842B2 #C89B42 #42C858 #426FC8
split-complementary
#C842B2 #6FC842 #42C89B
monochromatic
#6F2062 #9F2E8C #C842B2 #D671C5 #E4A1D9

Accessibility & contrast

On white

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

On black

4.88
#C842B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B2#FFFFFF#000000##000000
##C842B21.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c842b2;
/* rgb */ color: rgb(200, 66, 178);
/* oklch */ color: oklch(60.6% 0.208 335.1);
Tailwind
colors: {
  custom: {
    50: '#dc81c9',
    500: '#c842b2',
    950: '#000000',
  },
}
SCSS
$custom: #c842b2;
$custom-light: #dc81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b2",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 309.851,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60616,
    "c": 0.20825,
    "h": 335.1
  },
  "luminance": 0.1939
}

Semantic roles & 50–950 ramp

primary
#C842B2
secondary
#96D09F
accent
#DE624A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82

Preview Lab

Preview with #C842B2

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

Preview Lab → · Contrast checker → · Palette generator →

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