#A840D2#A840D2

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

Color values

HEX#A840D2
RGBrgb(168, 64, 210)
HSLhsl(283, 62%, 54%)
HSVhsv(283, 70%, 82%)
CMYKcmyk(20%, 69.5%, 0%, 17.6%)
CIE-LABlab(47.81, 63.92, -56.30)
CIE-LCHlch(47.81, 85.17, 318.63°)
OKLaboklab(57.82% 0.1554 -0.1586)
OKLCHoklch(57.82% 0.222 314.4)
XYZxyz(29.6128, 16.6458, 62.6133)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840D2 #6AD240
analogous
#5F40D2 #A840D2 #D240B3
triadic
#A840D2 #D2A840 #40D2A8
tetradic
#A840D2 #D25F40 #6AD240 #40B3D2
square
#A840D2 #D25F40 #6AD240 #40B3D2
split-complementary
#A840D2 #B3D240 #40D25F
monochromatic
#601D7B #8629AC #A840D2 #BF72DE #D5A3E9

Accessibility & contrast

On white

4.85
#A840D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#A840D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840D2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840D2#FFFFFF#000000##FFFFFF
##A840D21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#3974CF
Tritanopia (blue-blind)
#A45E85
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a840d2;
/* rgb */ color: rgb(168, 64, 210);
/* oklch */ color: oklch(57.8% 0.222 314.4);
Tailwind
colors: {
  custom: {
    50: '#c67de0',
    500: '#a840d2',
    950: '#000000',
  },
}
SCSS
$custom: #a840d2;
$custom-light: #c67de0;
$custom-dark: #000000;
JSON
{
  "hex": "#a840d2",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 282.74,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57821,
    "c": 0.22204,
    "h": 314.4
  },
  "luminance": 0.16645
}

Semantic roles & 50–950 ramp

primary
#A840D2
secondary
#AAD698
accent
#E54371
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840D2

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

Preview Lab → · Contrast checker → · Palette generator →

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