#C842B5#C842B5

#C842B5 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.210 H 334.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C842B5
RGBrgb(200, 66, 181)
HSLhsl(309, 55%, 52%)
HSVhsv(309, 67%, 78%)
CMYKcmyk(0%, 67%, 9.5%, 21.6%)
CIE-LABlab(51.28, 65.30, -33.71)
CIE-LCHlch(51.28, 73.48, 332.69°)
OKLaboklab(60.76% 0.1892 -0.0921)
OKLCHoklch(60.76% 0.21 334)
XYZxyz(34.1084, 19.5148, 45.6774)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B5 #42C855
analogous
#9842C8 #C842B5 #C84272
triadic
#C842B5 #B5C842 #42B5C8
tetradic
#C842B5 #C89842 #42C855 #4272C8
square
#C842B5 #C89842 #42C855 #4272C8
split-complementary
#C842B5 #72C842 #42C898
monochromatic
#6F2064 #9F2E8F #C842B5 #D671C8 #E4A1DA

Accessibility & contrast

On white

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

On black

4.90
#C842B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B5#FFFFFF#000000##000000
##C842B51.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#406EB8
Deuteranopia (green-blind)
#6D81B2
Tritanopia (blue-blind)
#D14D76
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b5;
/* rgb */ color: rgb(200, 66, 181);
/* oklch */ color: oklch(60.8% 0.210 334.0);
Tailwind
colors: {
  custom: {
    50: '#dc81cb',
    500: '#c842b5',
    950: '#000000',
  },
}
SCSS
$custom: #c842b5;
$custom-light: #dc81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b5",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 308.507,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60763,
    "c": 0.21043,
    "h": 334
  },
  "luminance": 0.19512
}

Semantic roles & 50–950 ramp

primary
#C842B5
secondary
#96D09E
accent
#DE5F4A
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C842B5

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

Preview Lab → · Contrast checker → · Palette generator →

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