#A842D6#A842D6

#A842D6 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.223 H 313.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A842D6
RGBrgb(168, 66, 214)
HSLhsl(281, 64%, 55%)
HSVhsv(281, 69%, 84%)
CMYKcmyk(21.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(48.36, 63.91, -57.71)
CIE-LCHlch(48.36, 86.11, 317.92°)
OKLaboklab(58.29% 0.153 -0.1628)
OKLCHoklch(58.29% 0.223 313.2)
XYZxyz(30.2321, 17.0772, 65.3090)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842D6 #70D642
analogous
#5E42D6 #A842D6 #D642BA
triadic
#A842D6 #D6A842 #42D6A8
tetradic
#A842D6 #D65E42 #70D642 #42BAD6
square
#A842D6 #D65E42 #70D642 #42BAD6
split-complementary
#A842D6 #BAD642 #42D65E
monochromatic
#621C82 #8827B4 #A842D6 #BF74E1 #D6A7EC

Accessibility & contrast

On white

4.76
#A842D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#A842D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842D6
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842D6#FFFFFF#000000##FFFFFF
##A842D61.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#3675D3
Tritanopia (blue-blind)
#A36187
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a842d6;
/* rgb */ color: rgb(168, 66, 214);
/* oklch */ color: oklch(58.3% 0.223 313.2);
Tailwind
colors: {
  custom: {
    50: '#c67ee3',
    500: '#a842d6',
    950: '#000000',
  },
}
SCSS
$custom: #a842d6;
$custom-light: #c67ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a842d6",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 281.351,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58293,
    "c": 0.22335,
    "h": 313.2
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#A842D6
secondary
#AED99B
accent
#E74074
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A842D6

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

Preview Lab → · Contrast checker → · Palette generator →

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