#C842C3#C842C3

#C842C3 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.221 H 329.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C842C3
RGBrgb(200, 66, 195)
HSLhsl(302, 55%, 52%)
HSVhsv(302, 67%, 78%)
CMYKcmyk(0%, 67%, 2.5%, 21.6%)
CIE-LABlab(51.97, 67.50, -40.75)
CIE-LCHlch(51.97, 78.85, 328.88°)
OKLaboklab(61.48% 0.1903 -0.1124)
OKLCHoklch(61.48% 0.221 329.4)
XYZxyz(35.6177, 20.1185, 53.6265)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C3 #42C847
analogous
#8A42C8 #C842C3 #C84280
triadic
#C842C3 #C3C842 #42C3C8
tetradic
#C842C3 #C88A42 #42C847 #4280C8
square
#C842C3 #C88A42 #42C847 #4280C8
split-complementary
#C842C3 #80C842 #42C88A
monochromatic
#6F206C #9F2E9A #C842C3 #D671D2 #E4A1E1

Accessibility & contrast

On white

4.18
#C842C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#C842C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C3
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C3#FFFFFF#000000##000000
##C842C31.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3370C7
Deuteranopia (green-blind)
#6782C0
Tritanopia (blue-blind)
#CF537D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c3;
/* rgb */ color: rgb(200, 66, 195);
/* oklch */ color: oklch(61.5% 0.221 329.4);
Tailwind
colors: {
  custom: {
    50: '#dc81d5',
    500: '#c842c3',
    950: '#000000',
  },
}
SCSS
$custom: #c842c3;
$custom-light: #dc81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c3",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 302.239,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61483,
    "c": 0.22099,
    "h": 329.4
  },
  "luminance": 0.20116
}

Semantic roles & 50–950 ramp

primary
#C842C3
secondary
#96D098
accent
#DE4F4A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842C3

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

Preview Lab → · Contrast checker → · Palette generator →

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