#A840D8#A840D8

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

Color values

HEX#A840D8
RGBrgb(168, 64, 216)
HSLhsl(281, 66%, 55%)
HSVhsv(281, 70%, 85%)
CMYKcmyk(22.2%, 70.4%, 0%, 15.3%)
CIE-LABlab(48.20, 65.13, -59.11)
CIE-LCHlch(48.20, 87.95, 317.77°)
OKLaboklab(58.22% 0.1548 -0.1669)
OKLCHoklch(58.22% 0.228 312.8)
XYZxyz(30.3743, 16.9504, 66.6241)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D8 #70D840
analogous
#5C40D8 #A840D8 #D840BC
triadic
#A840D8 #D8A840 #40D8A8
tetradic
#A840D8 #D85C40 #70D840 #40BCD8
square
#A840D8 #D85C40 #70D840 #40BCD8
split-complementary
#A840D8 #BCD840 #40D85C
monochromatic
#621B83 #8825B6 #A840D8 #BF73E2 #D6A6ED

Accessibility & contrast

On white

4.78
#A840D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A840D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D8#FFFFFF#000000##FFFFFF
##A840D81.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#3275D5
Tritanopia (blue-blind)
#A36188
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a840d8;
/* rgb */ color: rgb(168, 64, 216);
/* oklch */ color: oklch(58.2% 0.228 312.8);
Tailwind
colors: {
  custom: {
    50: '#c67ee5',
    500: '#a840d8',
    950: '#000000',
  },
}
SCSS
$custom: #a840d8;
$custom-light: #c67ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d8",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 281.053,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5822,
    "c": 0.22758,
    "h": 312.8
  },
  "luminance": 0.16949
}

Semantic roles & 50–950 ramp

primary
#A840D8
secondary
#AEDA9A
accent
#E93F75
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A840D8

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

Preview Lab → · Contrast checker → · Palette generator →

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