#A840D1#A840D1

#A840D1 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.221 H 314.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#A840D1
RGBrgb(168, 64, 209)
HSLhsl(283, 61%, 54%)
HSVhsv(283, 69%, 82%)
CMYKcmyk(19.6%, 69.4%, 0%, 18%)
CIE-LABlab(47.75, 63.72, -55.83)
CIE-LCHlch(47.75, 84.71, 318.78°)
OKLaboklab(57.76% 0.1555 -0.1572)
OKLCHoklch(57.76% 0.221 314.7)
XYZxyz(29.4886, 16.5961, 61.9592)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D1 #69D140
analogous
#5F40D1 #A840D1 #D140B2
triadic
#A840D1 #D1A840 #40D1A8
tetradic
#A840D1 #D15F40 #69D140 #40B2D1
square
#A840D1 #D15F40 #69D140 #40B2D1
split-complementary
#A840D1 #B2D140 #40D15F
monochromatic
#5F1D79 #8629AB #A840D1 #BE71DD #D5A3E9

Accessibility & contrast

On white

4.86
#A840D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A840D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D1#FFFFFF#000000##FFFFFF
##A840D11.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#3A74CE
Tritanopia (blue-blind)
#A45E84
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a840d1;
/* rgb */ color: rgb(168, 64, 209);
/* oklch */ color: oklch(57.8% 0.221 314.7);
Tailwind
colors: {
  custom: {
    50: '#c67de0',
    500: '#a840d1',
    950: '#000000',
  },
}
SCSS
$custom: #a840d1;
$custom-light: #c67de0;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d1",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 283.034,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57756,
    "c": 0.22112,
    "h": 314.7
  },
  "luminance": 0.16595
}

Semantic roles & 50–950 ramp

primary
#A840D1
secondary
#A9D597
accent
#E44471
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840D1

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

Preview Lab → · Contrast checker → · Palette generator →

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