#C842B7#C842B7

#C842B7 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.212 H 333.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C842B7
RGBrgb(200, 66, 183)
HSLhsl(308, 55%, 52%)
HSVhsv(308, 67%, 78%)
CMYKcmyk(0%, 67%, 8.5%, 21.6%)
CIE-LABlab(51.38, 65.60, -34.73)
CIE-LCHlch(51.38, 74.23, 332.10°)
OKLaboklab(60.86% 0.1894 -0.095)
OKLCHoklch(60.86% 0.212 333.3)
XYZxyz(34.3150, 19.5975, 46.7659)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B7 #42C853
analogous
#9642C8 #C842B7 #C84274
triadic
#C842B7 #B7C842 #42B7C8
tetradic
#C842B7 #C89642 #42C853 #4274C8
square
#C842B7 #C89642 #42C853 #4274C8
split-complementary
#C842B7 #74C842 #42C896
monochromatic
#6F2065 #9F2E90 #C842B7 #D671C9 #E4A1DB

Accessibility & contrast

On white

4.27
#C842B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#C842B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B7#FFFFFF#000000##000000
##C842B71.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6EBA
Deuteranopia (green-blind)
#6C81B4
Tritanopia (blue-blind)
#D14E77
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b7;
/* rgb */ color: rgb(200, 66, 183);
/* oklch */ color: oklch(60.9% 0.212 333.3);
Tailwind
colors: {
  custom: {
    50: '#dc81cd',
    500: '#c842b7',
    950: '#000000',
  },
}
SCSS
$custom: #c842b7;
$custom-light: #dc81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b7",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 307.612,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60863,
    "c": 0.2119,
    "h": 333.3
  },
  "luminance": 0.19595
}

Semantic roles & 50–950 ramp

primary
#C842B7
secondary
#96D09D
accent
#DE5C4A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C842B7

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

Preview Lab → · Contrast checker → · Palette generator →

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