#C842B3#C842B3

#C842B3 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.7% C 0.209 H 334.7°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C842B3
RGBrgb(200, 66, 179)
HSLhsl(309, 55%, 52%)
HSVhsv(309, 67%, 78%)
CMYKcmyk(0%, 67%, 10.5%, 21.6%)
CIE-LABlab(51.19, 64.99, -32.69)
CIE-LCHlch(51.19, 72.75, 333.30°)
OKLaboklab(60.67% 0.189 -0.0892)
OKLCHoklch(60.67% 0.209 334.7)
XYZxyz(33.9046, 19.4333, 44.6044)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842B3 #42C857
analogous
#9A42C8 #C842B3 #C84270
triadic
#C842B3 #B3C842 #42B3C8
tetradic
#C842B3 #C89A42 #42C857 #4270C8
square
#C842B3 #C89A42 #42C857 #4270C8
split-complementary
#C842B3 #70C842 #42C89A
monochromatic
#6F2063 #9F2E8D #C842B3 #D671C6 #E4A1D9

Accessibility & contrast

On white

4.30
#C842B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C842B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842B3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842B3#FFFFFF#000000##000000
##C842B31.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#416DB6
Deuteranopia (green-blind)
#6E81B0
Tritanopia (blue-blind)
#D14C75
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c842b3;
/* rgb */ color: rgb(200, 66, 179);
/* oklch */ color: oklch(60.7% 0.209 334.7);
Tailwind
colors: {
  custom: {
    50: '#dc81ca',
    500: '#c842b3',
    950: '#000000',
  },
}
SCSS
$custom: #c842b3;
$custom-light: #dc81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#c842b3",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 309.403,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60665,
    "c": 0.20898,
    "h": 334.7
  },
  "luminance": 0.1943
}

Semantic roles & 50–950 ramp

primary
#C842B3
secondary
#96D09F
accent
#DE614A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82

Preview Lab

Preview with #C842B3

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

Preview Lab → · Contrast checker → · Palette generator →

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