#A840CF#A840CF

#A840CF is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.219 H 315.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#A840CF
RGBrgb(168, 64, 207)
HSLhsl(284, 60%, 53%)
HSVhsv(284, 69%, 81%)
CMYKcmyk(18.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(47.62, 63.32, -54.88)
CIE-LCHlch(47.62, 83.79, 319.08°)
OKLaboklab(57.63% 0.1556 -0.1544)
OKLCHoklch(57.63% 0.219 315.2)
XYZxyz(29.2425, 16.4977, 60.6634)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840CF #67CF40
analogous
#6040CF #A840CF #CF40AF
triadic
#A840CF #CFA840 #40CFA8
tetradic
#A840CF #CF6040 #67CF40 #40AFCF
square
#A840CF #CF6040 #67CF40 #40AFCF
split-complementary
#A840CF #AFCF40 #40CF60
monochromatic
#5F1E77 #852AA8 #A840CF #BE71DB #D5A2E8

Accessibility & contrast

On white

4.88
#A840CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#A840CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840CF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840CF#FFFFFF#000000##FFFFFF
##A840CF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#3C74CC
Tritanopia (blue-blind)
#A55D83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a840cf;
/* rgb */ color: rgb(168, 64, 207);
/* oklch */ color: oklch(57.6% 0.219 315.2);
Tailwind
colors: {
  custom: {
    50: '#c67dde',
    500: '#a840cf',
    950: '#000000',
  },
}
SCSS
$custom: #a840cf;
$custom-light: #c67dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a840cf",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 283.636,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57625,
    "c": 0.21927,
    "h": 315.2
  },
  "luminance": 0.16497
}

Semantic roles & 50–950 ramp

primary
#A840CF
secondary
#A7D497
accent
#E34570
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A840CF

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

Preview Lab → · Contrast checker → · Palette generator →

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