#A840A2#A840A2

#A840A2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.179 H 330.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#A840A2
RGBrgb(168, 64, 162)
HSLhsl(303, 45%, 45%)
HSVhsv(303, 62%, 66%)
CMYKcmyk(0%, 61.9%, 3.6%, 34.1%)
CIE-LABlab(45.08, 54.93, -32.60)
CIE-LCHlch(45.08, 63.87, 329.31°)
OKLaboklab(54.98% 0.1554 -0.0896)
OKLCHoklch(54.98% 0.179 330)
XYZxyz(24.5033, 14.6020, 35.7033)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840A2 #40A846
analogous
#7A40A8 #A840A2 #A8406E
triadic
#A840A2 #A2A840 #40A2A8
tetradic
#A840A2 #A87A40 #40A846 #406EA8
square
#A840A2 #A87A40 #40A846 #406EA8
split-complementary
#A840A2 #6EA840 #40A87A
monochromatic
#4F1E4D #7C2F77 #A840A2 #C362BE #D48ED0

Accessibility & contrast

On white

5.36
#A840A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#A840A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840A2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840A2#FFFFFF#000000##FFFFFF
##A840A21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A5
Deuteranopia (green-blind)
#5B709F
Tritanopia (blue-blind)
#AE4B6B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a840a2;
/* rgb */ color: rgb(168, 64, 162);
/* oklch */ color: oklch(55.0% 0.179 330.0);
Tailwind
colors: {
  custom: {
    50: '#c57cbe',
    500: '#a840a2',
    950: '#000000',
  },
}
SCSS
$custom: #a840a2;
$custom-light: #c57cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a840a2",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 303.462,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54978,
    "c": 0.17935,
    "h": 330
  },
  "luminance": 0.146
}

Semantic roles & 50–950 ramp

primary
#A840A2
secondary
#85BF88
accent
#D55B53
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A840A2

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

Preview Lab → · Contrast checker → · Palette generator →

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