#A842D4#A842D4

#A842D4 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.221 H 313.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A842D4
RGBrgb(168, 66, 212)
HSLhsl(282, 63%, 55%)
HSVhsv(282, 69%, 83%)
CMYKcmyk(20.8%, 68.9%, 0%, 16.9%)
CIE-LABlab(48.23, 63.50, -56.77)
CIE-LCHlch(48.23, 85.18, 318.20°)
OKLaboklab(58.16% 0.1531 -0.16)
OKLCHoklch(58.16% 0.221 313.7)
XYZxyz(29.9783, 16.9757, 63.9721)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842D4 #6ED442
analogous
#5F42D4 #A842D4 #D442B7
triadic
#A842D4 #D4A842 #42D4A8
tetradic
#A842D4 #D45F42 #6ED442 #42B7D4
square
#A842D4 #D45F42 #6ED442 #42B7D4
split-complementary
#A842D4 #B7D442 #42D45F
monochromatic
#611D7F #8828B1 #A842D4 #BF74DF #D6A6EB

Accessibility & contrast

On white

4.78
#A842D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A842D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842D4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842D4#FFFFFF#000000##FFFFFF
##A842D41.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#3975D1
Tritanopia (blue-blind)
#A46086
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a842d4;
/* rgb */ color: rgb(168, 66, 212);
/* oklch */ color: oklch(58.2% 0.221 313.7);
Tailwind
colors: {
  custom: {
    50: '#c67ee2',
    500: '#a842d4',
    950: '#000000',
  },
}
SCSS
$custom: #a842d4;
$custom-light: #c67ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#a842d4",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 281.918,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58161,
    "c": 0.22148,
    "h": 313.7
  },
  "luminance": 0.16975
}

Semantic roles & 50–950 ramp

primary
#A842D4
secondary
#ADD89A
accent
#E64273
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A842D4

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

Preview Lab → · Contrast checker → · Palette generator →

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