#C842E2#C842E2

#C842E2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.3% C 0.246 H 320.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#C842E2
RGBrgb(200, 66, 226)
HSLhsl(290, 73%, 57%)
HSVhsv(290, 71%, 89%)
CMYKcmyk(11.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(53.67, 72.79, -55.74)
CIE-LCHlch(53.67, 91.68, 322.55°)
OKLaboklab(63.25% 0.1901 -0.156)
OKLCHoklch(63.25% 0.246 320.6)
XYZxyz(39.4935, 21.6688, 74.0390)
Luminance0.2167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842E2 #5CE242
analogous
#7842E2 #C842E2 #E242AC
triadic
#C842E2 #E2C842 #42E2C8
tetradic
#C842E2 #E27842 #5CE242 #42ACE2
square
#C842E2 #E27842 #5CE242 #42ACE2
split-complementary
#C842E2 #ACE242 #42E278
monochromatic
#7F1793 #AD1FC8 #C842E2 #D777EA #E7ACF2

Accessibility & contrast

On white

3.94
#C842E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#C842E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842E2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842E2#FFFFFF#000000##000000
##C842E21.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#5385DE
Tritanopia (blue-blind)
#C9608E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #c842e2;
/* rgb */ color: rgb(200, 66, 226);
/* oklch */ color: oklch(63.3% 0.246 320.6);
Tailwind
colors: {
  custom: {
    50: '#dd82ec',
    500: '#c842e2',
    950: '#000000',
  },
}
SCSS
$custom: #c842e2;
$custom-light: #dd82ec;
$custom-dark: #000000;
JSON
{
  "hex": "#c842e2",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 290.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.63254,
    "c": 0.24591,
    "h": 320.6
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#C842E2
secondary
#AAE09F
accent
#F03856
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #C842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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