#C842B6#C842B6

#C842B6 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.8% C 0.211 H 333.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#C842B6
RGBrgb(200, 66, 182)
HSLhsl(308, 55%, 52%)
HSVhsv(308, 67%, 78%)
CMYKcmyk(0%, 67%, 9%, 21.6%)
CIE-LABlab(51.33, 65.45, -34.22)
CIE-LCHlch(51.33, 73.85, 332.40°)
OKLaboklab(60.81% 0.1893 -0.0936)
OKLCHoklch(60.81% 0.211 333.7)
XYZxyz(34.2113, 19.5560, 46.2197)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B6 #42C854
analogous
#9742C8 #C842B6 #C84273
triadic
#C842B6 #B6C842 #42B6C8
tetradic
#C842B6 #C89742 #42C854 #4273C8
square
#C842B6 #C89742 #42C854 #4273C8
split-complementary
#C842B6 #73C842 #42C897
monochromatic
#6F2065 #9F2E90 #C842B6 #D671C8 #E4A1DB

Accessibility & contrast

On white

4.28
#C842B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#C842B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B6#FFFFFF#000000##000000
##C842B61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6EB9
Deuteranopia (green-blind)
#6D81B3
Tritanopia (blue-blind)
#D14D76
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b6;
/* rgb */ color: rgb(200, 66, 182);
/* oklch */ color: oklch(60.8% 0.211 333.7);
Tailwind
colors: {
  custom: {
    50: '#dc81cc',
    500: '#c842b6',
    950: '#000000',
  },
}
SCSS
$custom: #c842b6;
$custom-light: #dc81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b6",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 308.06,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60813,
    "c": 0.21117,
    "h": 333.7
  },
  "luminance": 0.19553
}

Semantic roles & 50–950 ramp

primary
#C842B6
secondary
#96D09E
accent
#DE5E4A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C842B6

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

Preview Lab → · Contrast checker → · Palette generator →

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