#C842CB#C842CB

#C842CB is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.227 H 327.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#C842CB
RGBrgb(200, 66, 203)
HSLhsl(299, 57%, 53%)
HSVhsv(299, 67%, 80%)
CMYKcmyk(1.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(52.39, 68.81, -44.70)
CIE-LCHlch(52.39, 82.06, 326.99°)
OKLaboklab(61.92% 0.1905 -0.1238)
OKLCHoklch(61.92% 0.227 327)
XYZxyz(36.5465, 20.4900, 58.5184)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842CB #45CB42
analogous
#8342CB #C842CB #CB428A
triadic
#C842CB #CBC842 #42CBC8
tetradic
#C842CB #CB8342 #45CB42 #428ACB
square
#C842CB #CB8342 #45CB42 #428ACB
split-complementary
#C842CB #8ACB42 #42CB83
monochromatic
#712073 #A02DA3 #C842CB #D672D8 #E4A2E5

Accessibility & contrast

On white

4.12
#C842CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#C842CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842CB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842CB#FFFFFF#000000##000000
##C842CB1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#6283C7
Tritanopia (blue-blind)
#CE5682
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c842cb;
/* rgb */ color: rgb(200, 66, 203);
/* oklch */ color: oklch(61.9% 0.227 327.0);
Tailwind
colors: {
  custom: {
    50: '#dc81db',
    500: '#c842cb',
    950: '#000000',
  },
}
SCSS
$custom: #c842cb;
$custom-light: #dc81db;
$custom-dark: #000000;
JSON
{
  "hex": "#c842cb",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 298.686,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61917,
    "c": 0.22725,
    "h": 327
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

primary
#C842CB
secondary
#98D297
accent
#E0484B
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#150B15
muted
#847C83

Preview Lab

Preview with #C842CB

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

Preview Lab → · Contrast checker → · Palette generator →

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