#A840CE#A840CE

#A840CE is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.218 H 315.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A840CE
RGBrgb(168, 64, 206)
HSLhsl(284, 59%, 53%)
HSVhsv(284, 69%, 81%)
CMYKcmyk(18.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(47.56, 63.12, -54.41)
CIE-LCHlch(47.56, 83.33, 319.24°)
OKLaboklab(57.56% 0.1557 -0.1531)
OKLCHoklch(57.56% 0.218 315.5)
XYZxyz(29.1207, 16.4489, 60.0215)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CE #66CE40
analogous
#6140CE #A840CE #CE40AD
triadic
#A840CE #CEA840 #40CEA8
tetradic
#A840CE #CE6140 #66CE40 #40ADCE
square
#A840CE #CE6140 #66CE40 #40ADCE
split-complementary
#A840CE #ADCE40 #40CE61
monochromatic
#5E1E75 #852BA6 #A840CE #BE71DA #D4A1E7

Accessibility & contrast

On white

4.90
#A840CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#A840CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840CE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840CE#FFFFFF#000000##FFFFFF
##A840CE1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a840ce;
/* rgb */ color: rgb(168, 64, 206);
/* oklch */ color: oklch(57.6% 0.218 315.5);
Tailwind
colors: {
  custom: {
    50: '#c67dde',
    500: '#a840ce',
    950: '#000000',
  },
}
SCSS
$custom: #a840ce;
$custom-light: #c67dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a840ce",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 283.944,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5756,
    "c": 0.21835,
    "h": 315.5
  },
  "luminance": 0.16448
}

Semantic roles & 50–950 ramp

primary
#A840CE
secondary
#A7D496
accent
#E2456F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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