#A840CA#A840CA

#A840CA is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.215 H 316.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A840CA
RGBrgb(168, 64, 202)
HSLhsl(285, 57%, 52%)
HSVhsv(285, 68%, 79%)
CMYKcmyk(16.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(47.31, 62.32, -52.50)
CIE-LCHlch(47.31, 81.49, 319.89°)
OKLaboklab(57.3% 0.156 -0.1475)
OKLCHoklch(57.3% 0.215 316.6)
XYZxyz(28.6409, 16.2570, 57.4949)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CA #62CA40
analogous
#6340CA #A840CA #CA40A7
triadic
#A840CA #CAA840 #40CAA8
tetradic
#A840CA #CA6340 #62CA40 #40A7CA
square
#A840CA #CA6340 #62CA40 #40A7CA
split-complementary
#A840CA #A7CA40 #40CA63
monochromatic
#5C1F70 #842CA0 #A840CA #BE70D7 #D4A0E5

Accessibility & contrast

On white

4.94
#A840CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#A840CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840CA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840CA#FFFFFF#000000##FFFFFF
##A840CA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#4173C7
Tritanopia (blue-blind)
#A65B80
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a840ca;
/* rgb */ color: rgb(168, 64, 202);
/* oklch */ color: oklch(57.3% 0.215 316.6);
Tailwind
colors: {
  custom: {
    50: '#c67ddb',
    500: '#a840ca',
    950: '#000000',
  },
}
SCSS
$custom: #a840ca;
$custom-light: #c67ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a840ca",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 285.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.21468,
    "h": 316.6
  },
  "luminance": 0.16256
}

Semantic roles & 50–950 ramp

primary
#A840CA
secondary
#A4D195
accent
#E0486D
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CA

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

Preview Lab → · Contrast checker → · Palette generator →

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