#A842DC#A842DC

#A842DC is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.7% C 0.229 H 311.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#A842DC
RGBrgb(168, 66, 220)
HSLhsl(280, 69%, 56%)
HSVhsv(280, 70%, 86%)
CMYKcmyk(23.6%, 70%, 0%, 13.7%)
CIE-LABlab(48.75, 65.14, -60.50)
CIE-LCHlch(48.75, 88.90, 317.11°)
OKLaboklab(58.7% 0.1523 -0.171)
OKLCHoklch(58.7% 0.229 311.7)
XYZxyz(31.0125, 17.3894, 69.4191)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842DC #76DC42
analogous
#5B42DC #A842DC #DC42C3
triadic
#A842DC #DCA842 #42DCA8
tetradic
#A842DC #DC5B42 #76DC42 #42C3DC
square
#A842DC #DC5B42 #76DC42 #42C3DC
split-complementary
#A842DC #C3DC42 #42DC5B
monochromatic
#641A8A #8923BE #A842DC #C076E6 #D8A9EF

Accessibility & contrast

On white

4.69
#A842DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#A842DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842DC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842DC#FFFFFF#000000##FFFFFF
##A842DC1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#2E76D9
Tritanopia (blue-blind)
#A2638B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a842dc;
/* rgb */ color: rgb(168, 66, 220);
/* oklch */ color: oklch(58.7% 0.229 311.7);
Tailwind
colors: {
  custom: {
    50: '#c67fe8',
    500: '#a842dc',
    950: '#000000',
  },
}
SCSS
$custom: #a842dc;
$custom-light: #c67fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#a842dc",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 279.74,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58695,
    "c": 0.22897,
    "h": 311.7
  },
  "luminance": 0.17389
}

Semantic roles & 50–950 ramp

primary
#A842DC
secondary
#B3DD9D
accent
#EC3C77
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A842DC

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

Preview Lab → · Contrast checker → · Palette generator →

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