#A842CF#A842CF

#A842CF is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.217 H 315.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A842CF
RGBrgb(168, 66, 207)
HSLhsl(283, 59%, 54%)
HSVhsv(283, 68%, 81%)
CMYKcmyk(18.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(47.91, 62.49, -54.41)
CIE-LCHlch(47.91, 82.86, 318.96°)
OKLaboklab(57.84% 0.1535 -0.1531)
OKLCHoklch(57.84% 0.217 315.1)
XYZxyz(29.3573, 16.7273, 60.7016)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842CF #69CF42
analogous
#6142CF #A842CF #CF42B0
triadic
#A842CF #CFA842 #42CFA8
tetradic
#A842CF #CF6142 #69CF42 #42B0CF
square
#A842CF #CF6142 #69CF42 #42B0CF
split-complementary
#A842CF #B0CF42 #42CF61
monochromatic
#5F1F78 #862BA9 #A842CF #BE73DB #D5A4E8

Accessibility & contrast

On white

4.83
#A842CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#A842CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842CF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842CF#FFFFFF#000000##FFFFFF
##A842CF1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#3E74CC
Tritanopia (blue-blind)
#A55E84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a842cf;
/* rgb */ color: rgb(168, 66, 207);
/* oklch */ color: oklch(57.8% 0.217 315.1);
Tailwind
colors: {
  custom: {
    50: '#c67ede',
    500: '#a842cf',
    950: '#000000',
  },
}
SCSS
$custom: #a842cf;
$custom-light: #c67ede;
$custom-dark: #000000;
JSON
{
  "hex": "#a842cf",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 283.404,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57835,
    "c": 0.21681,
    "h": 315.1
  },
  "luminance": 0.16726
}

Semantic roles & 50–950 ramp

primary
#A842CF
secondary
#A9D598
accent
#E34571
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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