#A840D0#A840D0

#A840D0 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.220 H 314.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A840D0
RGBrgb(168, 64, 208)
HSLhsl(283, 61%, 53%)
HSVhsv(283, 69%, 82%)
CMYKcmyk(19.2%, 69.2%, 0%, 18.4%)
CIE-LABlab(47.68, 63.52, -55.35)
CIE-LCHlch(47.68, 84.25, 318.93°)
OKLaboklab(57.69% 0.1556 -0.1558)
OKLCHoklch(57.69% 0.22 314.9)
XYZxyz(29.3652, 16.5467, 61.3093)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D0 #68D040
analogous
#6040D0 #A840D0 #D040B0
triadic
#A840D0 #D0A840 #40D0A8
tetradic
#A840D0 #D06040 #68D040 #40B0D0
square
#A840D0 #D06040 #68D040 #40B0D0
split-complementary
#A840D0 #B0D040 #40D060
monochromatic
#5F1E78 #862AA9 #A840D0 #BE71DC #D5A2E8

Accessibility & contrast

On white

4.87
#A840D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#A840D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D0
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D0#FFFFFF#000000##FFFFFF
##A840D01.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD4
Deuteranopia (green-blind)
#3B74CD
Tritanopia (blue-blind)
#A55D84
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a840d0;
/* rgb */ color: rgb(168, 64, 208);
/* oklch */ color: oklch(57.7% 0.220 314.9);
Tailwind
colors: {
  custom: {
    50: '#c67ddf',
    500: '#a840d0',
    950: '#000000',
  },
}
SCSS
$custom: #a840d0;
$custom-light: #c67ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d0",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 283.333,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5769,
    "c": 0.22019,
    "h": 314.9
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#A840D0
secondary
#A8D597
accent
#E44470
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840D0

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

Preview Lab → · Contrast checker → · Palette generator →

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