#A842C7#A842C7

#A842C7 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.209 H 317.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A842C7
RGBrgb(168, 66, 199)
HSLhsl(286, 54%, 52%)
HSVhsv(286, 67%, 78%)
CMYKcmyk(15.6%, 66.8%, 0%, 22%)
CIE-LABlab(47.43, 60.90, -50.58)
CIE-LCHlch(47.43, 79.17, 320.29°)
OKLaboklab(57.33% 0.154 -0.1419)
OKLCHoklch(57.33% 0.209 317.3)
XYZxyz(28.4040, 16.3459, 55.6807)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842C7 #61C742
analogous
#6642C7 #A842C7 #C742A4
triadic
#A842C7 #C7A842 #42C7A8
tetradic
#A842C7 #C76642 #61C742 #42A4C7
square
#A842C7 #C76642 #61C742 #42A4C7
split-complementary
#A842C7 #A4C742 #42C766
monochromatic
#5C216E #832F9D #A842C7 #BE71D5 #D3A0E3

Accessibility & contrast

On white

4.92
#A842C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#A842C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842C7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842C7#FFFFFF#000000##FFFFFF
##A842C71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#4674C4
Tritanopia (blue-blind)
#A75B7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a842c7;
/* rgb */ color: rgb(168, 66, 199);
/* oklch */ color: oklch(57.3% 0.209 317.3);
Tailwind
colors: {
  custom: {
    50: '#c57ed9',
    500: '#a842c7',
    950: '#000000',
  },
}
SCSS
$custom: #a842c7;
$custom-light: #c57ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#a842c7",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 286.015,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57328,
    "c": 0.20939,
    "h": 317.3
  },
  "luminance": 0.16345
}

Semantic roles & 50–950 ramp

primary
#A842C7
secondary
#A3D095
accent
#DE4A6D
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A842C7

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

Preview Lab → · Contrast checker → · Palette generator →

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