#A840D5#A840D5

#A840D5 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.225 H 313.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#A840D5
RGBrgb(168, 64, 213)
HSLhsl(282, 64%, 54%)
HSVhsv(282, 70%, 84%)
CMYKcmyk(21.1%, 70%, 0%, 16.5%)
CIE-LABlab(48.00, 64.52, -57.71)
CIE-LCHlch(48.00, 86.56, 318.19°)
OKLaboklab(58.02% 0.1551 -0.1627)
OKLCHoklch(58.02% 0.225 313.6)
XYZxyz(29.9900, 16.7967, 64.6002)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D5 #6DD540
analogous
#5E40D5 #A840D5 #D540B8
triadic
#A840D5 #D5A840 #40D5A8
tetradic
#A840D5 #D55E40 #6DD540 #40B8D5
square
#A840D5 #D55E40 #6DD540 #40B8D5
split-complementary
#A840D5 #B8D540 #40D55E
monochromatic
#611C7F #8727B1 #A840D5 #BF72E0 #D6A4EB

Accessibility & contrast

On white

4.82
#A840D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#A840D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D5
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D5#FFFFFF#000000##FFFFFF
##A840D51.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#3674D2
Tritanopia (blue-blind)
#A35F86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a840d5;
/* rgb */ color: rgb(168, 64, 213);
/* oklch */ color: oklch(58.0% 0.225 313.6);
Tailwind
colors: {
  custom: {
    50: '#c67de3',
    500: '#a840d5',
    950: '#000000',
  },
}
SCSS
$custom: #a840d5;
$custom-light: #c67de3;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d5",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 281.879,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5802,
    "c": 0.22481,
    "h": 313.6
  },
  "luminance": 0.16796
}

Semantic roles & 50–950 ramp

primary
#A840D5
secondary
#ACD899
accent
#E74173
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #A840D5

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

Preview Lab → · Contrast checker → · Palette generator →

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