#A842CC#A842CC

#A842CC is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.214 H 315.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A842CC
RGBrgb(168, 66, 204)
HSLhsl(284, 58%, 53%)
HSVhsv(284, 68%, 80%)
CMYKcmyk(17.6%, 67.6%, 0%, 20%)
CIE-LABlab(47.73, 61.89, -52.98)
CIE-LCHlch(47.73, 81.47, 319.44°)
OKLaboklab(57.64% 0.1537 -0.1489)
OKLCHoklch(57.64% 0.214 315.9)
XYZxyz(28.9941, 16.5820, 58.7884)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842CC #66CC42
analogous
#6342CC #A842CC #CC42AB
triadic
#A842CC #CCA842 #42CCA8
tetradic
#A842CC #CC6342 #66CC42 #42ABCC
square
#A842CC #CC6342 #66CC42 #42ABCC
split-complementary
#A842CC #ABCC42 #42CC63
monochromatic
#5E1F74 #852CA4 #A842CC #BE72D9 #D4A2E6

Accessibility & contrast

On white

4.87
#A842CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A842CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842CC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842CC#FFFFFF#000000##FFFFFF
##A842CC1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#A65D82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a842cc;
/* rgb */ color: rgb(168, 66, 204);
/* oklch */ color: oklch(57.6% 0.214 315.9);
Tailwind
colors: {
  custom: {
    50: '#c67edc',
    500: '#a842cc',
    950: '#000000',
  },
}
SCSS
$custom: #a842cc;
$custom-light: #c67edc;
$custom-dark: #000000;
JSON
{
  "hex": "#a842cc",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 284.348,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57643,
    "c": 0.21403,
    "h": 315.9
  },
  "luminance": 0.16581
}

Semantic roles & 50–950 ramp

primary
#A842CC
secondary
#A7D397
accent
#E1476F
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A842CC

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

Preview Lab → · Contrast checker → · Palette generator →

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