#A842CD#A842CD

#A842CD is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.215 H 315.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#A842CD
RGBrgb(168, 66, 205)
HSLhsl(284, 58%, 53%)
HSVhsv(284, 68%, 80%)
CMYKcmyk(18%, 67.8%, 0%, 19.6%)
CIE-LABlab(47.79, 62.09, -53.46)
CIE-LCHlch(47.79, 81.93, 319.27°)
OKLaboklab(57.71% 0.1537 -0.1503)
OKLCHoklch(57.71% 0.215 315.6)
XYZxyz(29.1144, 16.6301, 59.4221)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842CD #67CD42
analogous
#6242CD #A842CD #CD42AC
triadic
#A842CD #CDA842 #42CDA8
tetradic
#A842CD #CD6242 #67CD42 #42ACCD
square
#A842CD #CD6242 #67CD42 #42ACCD
split-complementary
#A842CD #ACCD42 #42CD62
monochromatic
#5F1F76 #852CA6 #A842CD #BE72DA #D5A3E7

Accessibility & contrast

On white

4.85
#A842CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#A842CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842CD
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842CD#FFFFFF#000000##FFFFFF
##A842CD1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#A55D82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a842cd;
/* rgb */ color: rgb(168, 66, 205);
/* oklch */ color: oklch(57.7% 0.215 315.6);
Tailwind
colors: {
  custom: {
    50: '#c67edd',
    500: '#a842cd',
    950: '#000000',
  },
}
SCSS
$custom: #a842cd;
$custom-light: #c67edd;
$custom-dark: #000000;
JSON
{
  "hex": "#a842cd",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 284.029,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57707,
    "c": 0.21496,
    "h": 315.6
  },
  "luminance": 0.16629
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A842CD

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

Preview Lab → · Contrast checker → · Palette generator →

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