#A840CB#A840CB

#A840CB is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.216 H 316.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#A840CB
RGBrgb(168, 64, 203)
HSLhsl(285, 57%, 52%)
HSVhsv(285, 68%, 80%)
CMYKcmyk(17.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(47.37, 62.52, -52.98)
CIE-LCHlch(47.37, 81.95, 319.72°)
OKLaboklab(57.37% 0.1559 -0.1489)
OKLCHoklch(57.37% 0.216 316.3)
XYZxyz(28.7597, 16.3045, 58.1205)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CB #63CB40
analogous
#6240CB #A840CB #CB40A9
triadic
#A840CB #CBA840 #40CBA8
tetradic
#A840CB #CB6240 #63CB40 #40A9CB
square
#A840CB #CB6240 #63CB40 #40A9CB
split-complementary
#A840CB #A9CB40 #40CB62
monochromatic
#5D1F72 #842CA2 #A840CB #BE70D8 #D4A0E5

Accessibility & contrast

On white

4.93
#A840CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#A840CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840CB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840CB#FFFFFF#000000##FFFFFF
##A840CB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#A65B81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a840cb;
/* rgb */ color: rgb(168, 64, 203);
/* oklch */ color: oklch(57.4% 0.216 316.3);
Tailwind
colors: {
  custom: {
    50: '#c67ddb',
    500: '#a840cb',
    950: '#000000',
  },
}
SCSS
$custom: #a840cb;
$custom-light: #c67ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a840cb",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 284.892,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57367,
    "c": 0.2156,
    "h": 316.3
  },
  "luminance": 0.16303
}

Semantic roles & 50–950 ramp

primary
#A840CB
secondary
#A4D295
accent
#E0476E
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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