#A842DA#A842DA

#A842DA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.227 H 312.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#A842DA
RGBrgb(168, 66, 218)
HSLhsl(280, 67%, 56%)
HSVhsv(280, 70%, 85%)
CMYKcmyk(22.9%, 69.7%, 0%, 14.5%)
CIE-LABlab(48.62, 64.73, -59.57)
CIE-LCHlch(48.62, 87.97, 317.37°)
OKLaboklab(58.56% 0.1525 -0.1682)
OKLCHoklch(58.56% 0.227 312.2)
XYZxyz(30.7492, 17.2841, 68.0324)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842DA #74DA42
analogous
#5C42DA #A842DA #DA42C0
triadic
#A842DA #DAA842 #42DAA8
tetradic
#A842DA #DA5C42 #74DA42 #42C0DA
square
#A842DA #DA5C42 #74DA42 #42C0DA
split-complementary
#A842DA #C0DA42 #42DA5C
monochromatic
#631A87 #8924BA #A842DA #C075E4 #D7A8EE

Accessibility & contrast

On white

4.71
#A842DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A842DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842DA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842DA#FFFFFF#000000##FFFFFF
##A842DA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#3176D7
Tritanopia (blue-blind)
#A2638A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a842da;
/* rgb */ color: rgb(168, 66, 218);
/* oklch */ color: oklch(58.6% 0.227 312.2);
Tailwind
colors: {
  custom: {
    50: '#c67fe6',
    500: '#a842da',
    950: '#000000',
  },
}
SCSS
$custom: #a842da;
$custom-light: #c67fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#a842da",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 280.263,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5856,
    "c": 0.2271,
    "h": 312.2
  },
  "luminance": 0.17283
}

Semantic roles & 50–950 ramp

primary
#A842DA
secondary
#B1DB9C
accent
#EA3E76
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A842DA

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

Preview Lab → · Contrast checker → · Palette generator →

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