#C842B9#C842B9

#C842B9 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.0% C 0.213 H 332.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#C842B9
RGBrgb(200, 66, 185)
HSLhsl(307, 55%, 52%)
HSVhsv(307, 67%, 78%)
CMYKcmyk(0%, 67%, 7.5%, 21.6%)
CIE-LABlab(51.48, 65.91, -35.74)
CIE-LCHlch(51.48, 74.98, 331.53°)
OKLaboklab(60.96% 0.1896 -0.098)
OKLCHoklch(60.96% 0.213 332.7)
XYZxyz(34.5247, 19.6813, 47.8700)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B9 #42C851
analogous
#9442C8 #C842B9 #C84276
triadic
#C842B9 #B9C842 #42B9C8
tetradic
#C842B9 #C89442 #42C851 #4276C8
square
#C842B9 #C89442 #42C851 #4276C8
split-complementary
#C842B9 #76C842 #42C894
monochromatic
#6F2066 #9F2E92 #C842B9 #D671CB #E4A1DC

Accessibility & contrast

On white

4.25
#C842B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#C842B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B9#FFFFFF#000000##000000
##C842B91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6EBC
Deuteranopia (green-blind)
#6B82B6
Tritanopia (blue-blind)
#D14E78
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c842b9;
/* rgb */ color: rgb(200, 66, 185);
/* oklch */ color: oklch(61.0% 0.213 332.7);
Tailwind
colors: {
  custom: {
    50: '#dc81ce',
    500: '#c842b9',
    950: '#000000',
  },
}
SCSS
$custom: #c842b9;
$custom-light: #dc81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b9",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 306.716,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.21339,
    "h": 332.7
  },
  "luminance": 0.19679
}

Semantic roles & 50–950 ramp

primary
#C842B9
secondary
#96D09C
accent
#DE5A4A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C842B9

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

Preview Lab → · Contrast checker → · Palette generator →

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