#A842C8#A842C8

#A842C8 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.210 H 317.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A842C8
RGBrgb(168, 66, 200)
HSLhsl(286, 55%, 52%)
HSVhsv(286, 67%, 78%)
CMYKcmyk(16%, 67%, 0%, 21.6%)
CIE-LABlab(47.49, 61.10, -51.06)
CIE-LCHlch(47.49, 79.63, 320.11°)
OKLaboklab(57.39% 0.154 -0.1433)
OKLCHoklch(57.39% 0.21 317.1)
XYZxyz(28.5205, 16.3925, 56.2941)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842C8 #62C842
analogous
#6542C8 #A842C8 #C842A5
triadic
#A842C8 #C8A842 #42C8A8
tetradic
#A842C8 #C86542 #62C842 #42A5C8
square
#A842C8 #C86542 #62C842 #42A5C8
split-complementary
#A842C8 #A5C842 #42C865
monochromatic
#5C206F #842E9F #A842C8 #BE71D6 #D4A1E4

Accessibility & contrast

On white

4.91
#A842C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A842C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842C8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842C8#FFFFFF#000000##FFFFFF
##A842C81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4574C5
Tritanopia (blue-blind)
#A75B80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a842c8;
/* rgb */ color: rgb(168, 66, 200);
/* oklch */ color: oklch(57.4% 0.210 317.1);
Tailwind
colors: {
  custom: {
    50: '#c57ed9',
    500: '#a842c8',
    950: '#000000',
  },
}
SCSS
$custom: #a842c8;
$custom-light: #c57ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#a842c8",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 285.672,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5739,
    "c": 0.21032,
    "h": 317.1
  },
  "luminance": 0.16391
}

Semantic roles & 50–950 ramp

primary
#A842C8
secondary
#A4D096
accent
#DE4A6D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A842C8

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

Preview Lab → · Contrast checker → · Palette generator →

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