#C842BE#C842BE

#C842BE is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.217 H 331.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C842BE
RGBrgb(200, 66, 190)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 67%, 78%)
CMYKcmyk(0%, 67%, 5%, 21.6%)
CIE-LABlab(51.72, 66.70, -38.26)
CIE-LCHlch(51.72, 76.89, 330.16°)
OKLaboklab(61.22% 0.19 -0.1052)
OKLCHoklch(61.22% 0.217 331)
XYZxyz(35.0618, 19.8962, 50.6989)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842BE #42C84C
analogous
#8F42C8 #C842BE #C8427B
triadic
#C842BE #BEC842 #42BEC8
tetradic
#C842BE #C88F42 #42C84C #427BC8
square
#C842BE #C88F42 #42C84C #427BC8
split-complementary
#C842BE #7BC842 #42C88F
monochromatic
#6F2069 #9F2E96 #C842BE #D671CE #E4A1DF

Accessibility & contrast

On white

4.22
#C842BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#C842BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842BE
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842BE#FFFFFF#000000##000000
##C842BE1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#386FC2
Deuteranopia (green-blind)
#6982BB
Tritanopia (blue-blind)
#D0517B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c842be;
/* rgb */ color: rgb(200, 66, 190);
/* oklch */ color: oklch(61.2% 0.217 331.0);
Tailwind
colors: {
  custom: {
    50: '#dc81d2',
    500: '#c842be',
    950: '#000000',
  },
}
SCSS
$custom: #c842be;
$custom-light: #dc81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#c842be",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 304.478,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6122,
    "c": 0.21716,
    "h": 331
  },
  "luminance": 0.19893
}

Semantic roles & 50–950 ramp

primary
#C842BE
secondary
#96D09A
accent
#DE554A
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B14
muted
#847C82

Preview Lab

Preview with #C842BE

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

Preview Lab → · Contrast checker → · Palette generator →

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