#A840CC#A840CC

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

Color values

HEX#A840CC
RGBrgb(168, 64, 204)
HSLhsl(285, 58%, 53%)
HSVhsv(285, 69%, 80%)
CMYKcmyk(17.6%, 68.6%, 0%, 20%)
CIE-LABlab(47.43, 62.72, -53.45)
CIE-LCHlch(47.43, 82.41, 319.56°)
OKLaboklab(57.43% 0.1559 -0.1503)
OKLCHoklch(57.43% 0.217 316)
XYZxyz(28.8792, 16.3524, 58.7501)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CC #64CC40
analogous
#6240CC #A840CC #CC40AA
triadic
#A840CC #CCA840 #40CCA8
tetradic
#A840CC #CC6240 #64CC40 #40AACC
square
#A840CC #CC6240 #64CC40 #40AACC
split-complementary
#A840CC #AACC40 #40CC62
monochromatic
#5D1F73 #842CA3 #A840CC #BE70D9 #D4A1E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A840CC#FFFFFF#000000##FFFFFF
##A840CC1.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)
#006AD0
Deuteranopia (green-blind)
#3F73C9
Tritanopia (blue-blind)
#A65C81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a840cc;
/* rgb */ color: rgb(168, 64, 204);
/* oklch */ color: oklch(57.4% 0.217 316.0);
Tailwind
colors: {
  custom: {
    50: '#c67ddc',
    500: '#a840cc',
    950: '#000000',
  },
}
SCSS
$custom: #a840cc;
$custom-light: #c67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#a840cc",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 284.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57431,
    "c": 0.21652,
    "h": 316
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#A840CC
secondary
#A5D295
accent
#E1476E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CC

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

Preview Lab → · Contrast checker → · Palette generator →

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