#C842BF#C842BF

#C842BF is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.218 H 330.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C842BF
RGBrgb(200, 66, 191)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 67%, 78%)
CMYKcmyk(0%, 67%, 4.5%, 21.6%)
CIE-LABlab(51.77, 66.86, -38.76)
CIE-LCHlch(51.77, 77.28, 329.90°)
OKLaboklab(61.27% 0.19 -0.1066)
OKLCHoklch(61.27% 0.218 330.7)
XYZxyz(35.1715, 19.9400, 51.2765)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842BF #42C84B
analogous
#8E42C8 #C842BF #C8427C
triadic
#C842BF #BFC842 #42BFC8
tetradic
#C842BF #C88E42 #42C84B #427CC8
square
#C842BF #C88E42 #42C84B #427CC8
split-complementary
#C842BF #7CC842 #42C88E
monochromatic
#6F206A #9F2E97 #C842BF #D671CF #E4A1DF

Accessibility & contrast

On white

4.21
#C842BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#C842BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842BF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842BF#FFFFFF#000000##000000
##C842BF1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3770C3
Deuteranopia (green-blind)
#6982BC
Tritanopia (blue-blind)
#D0517B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c842bf;
/* rgb */ color: rgb(200, 66, 191);
/* oklch */ color: oklch(61.3% 0.218 330.7);
Tailwind
colors: {
  custom: {
    50: '#dc81d3',
    500: '#c842bf',
    950: '#000000',
  },
}
SCSS
$custom: #c842bf;
$custom-light: #dc81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c842bf",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 304.03,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61272,
    "c": 0.21792,
    "h": 330.7
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

primary
#C842BF
secondary
#96D09A
accent
#DE544A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842BF

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

Preview Lab → · Contrast checker → · Palette generator →

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