#A840CD#A840CD

#A840CD is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.217 H 315.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A840CD
RGBrgb(168, 64, 205)
HSLhsl(284, 59%, 53%)
HSVhsv(284, 69%, 80%)
CMYKcmyk(18%, 68.8%, 0%, 19.6%)
CIE-LABlab(47.50, 62.92, -53.93)
CIE-LCHlch(47.50, 82.87, 319.40°)
OKLaboklab(57.5% 0.1558 -0.1517)
OKLCHoklch(57.5% 0.217 315.8)
XYZxyz(28.9996, 16.4005, 59.3838)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CD #65CD40
analogous
#6140CD #A840CD #CD40AC
triadic
#A840CD #CDA840 #40CDA8
tetradic
#A840CD #CD6140 #65CD40 #40ACCD
square
#A840CD #CD6140 #65CD40 #40ACCD
split-complementary
#A840CD #ACCD40 #40CD61
monochromatic
#5E1E74 #852BA5 #A840CD #BE71DA #D4A1E6

Accessibility & contrast

On white

4.91
#A840CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A840CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840CD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840CD#FFFFFF#000000##FFFFFF
##A840CD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#A55C82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a840cd;
/* rgb */ color: rgb(168, 64, 205);
/* oklch */ color: oklch(57.5% 0.217 315.8);
Tailwind
colors: {
  custom: {
    50: '#c67ddd',
    500: '#a840cd',
    950: '#000000',
  },
}
SCSS
$custom: #a840cd;
$custom-light: #c67ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a840cd",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 284.255,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57496,
    "c": 0.21743,
    "h": 315.8
  },
  "luminance": 0.16399
}

Semantic roles & 50–950 ramp

primary
#A840CD
secondary
#A6D396
accent
#E2466F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CD

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

Preview Lab → · Contrast checker → · Palette generator →

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