#A840D7#A840D7

#A840D7 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.227 H 313.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A840D7
RGBrgb(168, 64, 215)
HSLhsl(281, 65%, 55%)
HSVhsv(281, 70%, 84%)
CMYKcmyk(21.9%, 70.2%, 0%, 15.7%)
CIE-LABlab(48.13, 64.93, -58.64)
CIE-LCHlch(48.13, 87.49, 317.91°)
OKLaboklab(58.15% 0.1549 -0.1655)
OKLCHoklch(58.15% 0.227 313.1)
XYZxyz(30.2454, 16.8988, 65.9454)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D7 #6FD740
analogous
#5D40D7 #A840D7 #D740BA
triadic
#A840D7 #D7A840 #40D7A8
tetradic
#A840D7 #D75D40 #6FD740 #40BAD7
square
#A840D7 #D75D40 #6FD740 #40BAD7
split-complementary
#A840D7 #BAD740 #40D75D
monochromatic
#621B81 #8826B4 #A840D7 #BF73E2 #D6A5EC

Accessibility & contrast

On white

4.79
#A840D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A840D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D7#FFFFFF#000000##FFFFFF
##A840D71.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#3375D4
Tritanopia (blue-blind)
#A36087
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a840d7;
/* rgb */ color: rgb(168, 64, 215);
/* oklch */ color: oklch(58.2% 0.227 313.1);
Tailwind
colors: {
  custom: {
    50: '#c67de4',
    500: '#a840d7',
    950: '#000000',
  },
}
SCSS
$custom: #a840d7;
$custom-light: #c67de4;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d7",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 281.325,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58153,
    "c": 0.22665,
    "h": 313.1
  },
  "luminance": 0.16898
}

Semantic roles & 50–950 ramp

primary
#A840D7
secondary
#ADD99A
accent
#E83F74
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A840D7

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

Preview Lab → · Contrast checker → · Palette generator →

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