#A840A4#A840A4

#A840A4 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.1% C 0.181 H 329.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#A840A4
RGBrgb(168, 64, 164)
HSLhsl(302, 45%, 45%)
HSVhsv(302, 62%, 66%)
CMYKcmyk(0%, 61.9%, 2.4%, 34.1%)
CIE-LABlab(45.18, 55.27, -33.63)
CIE-LCHlch(45.18, 64.70, 328.68°)
OKLaboklab(55.08% 0.1556 -0.0926)
OKLCHoklch(55.08% 0.181 329.2)
XYZxyz(24.6825, 14.6736, 36.6470)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840A4 #40A844
analogous
#7840A8 #A840A4 #A84070
triadic
#A840A4 #A4A840 #40A4A8
tetradic
#A840A4 #A87840 #40A844 #4070A8
square
#A840A4 #A87840 #40A844 #4070A8
split-complementary
#A840A4 #70A840 #40A878
monochromatic
#4F1E4D #7C2F79 #A840A4 #C362BF #D48ED1

Accessibility & contrast

On white

5.34
#A840A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#A840A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840A4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840A4#FFFFFF#000000##FFFFFF
##A840A41.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A7
Deuteranopia (green-blind)
#5A70A1
Tritanopia (blue-blind)
#AE4C6C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a840a4;
/* rgb */ color: rgb(168, 64, 164);
/* oklch */ color: oklch(55.1% 0.181 329.2);
Tailwind
colors: {
  custom: {
    50: '#c57cbf',
    500: '#a840a4',
    950: '#000000',
  },
}
SCSS
$custom: #a840a4;
$custom-light: #c57cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#a840a4",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 302.308,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55083,
    "c": 0.18102,
    "h": 329.2
  },
  "luminance": 0.14672
}

Semantic roles & 50–950 ramp

primary
#A840A4
secondary
#85BF87
accent
#D55853
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A840A4

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

Preview Lab → · Contrast checker → · Palette generator →

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