#A840BA#A840BA

#A840BA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.3% C 0.200 H 321.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A840BA
RGBrgb(168, 64, 186)
HSLhsl(291, 49%, 49%)
HSVhsv(291, 66%, 73%)
CMYKcmyk(9.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(46.36, 59.24, -44.72)
CIE-LCHlch(46.36, 74.23, 322.95°)
OKLaboklab(56.32% 0.1565 -0.1247)
OKLCHoklch(56.32% 0.2 321.4)
XYZxyz(26.8438, 15.5382, 48.0301)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840BA #52BA40
analogous
#6B40BA #A840BA #BA408F
triadic
#A840BA #BAA840 #40BAA8
tetradic
#A840BA #BA6B40 #52BA40 #408FBA
square
#A840BA #BA6B40 #52BA40 #408FBA
split-complementary
#A840BA #8FBA40 #40BA6B
monochromatic
#56215F #7F308C #A840BA #BE6BCC #D299DC

Accessibility & contrast

On white

5.11
#A840BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#A840BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840BA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840BA#FFFFFF#000000##FFFFFF
##A840BA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BE
Deuteranopia (green-blind)
#4E72B7
Tritanopia (blue-blind)
#AA5478
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a840ba;
/* rgb */ color: rgb(168, 64, 186);
/* oklch */ color: oklch(56.3% 0.200 321.4);
Tailwind
colors: {
  custom: {
    50: '#c57ccf',
    500: '#a840ba',
    950: '#000000',
  },
}
SCSS
$custom: #a840ba;
$custom-light: #c57ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#a840ba",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 291.148,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56318,
    "c": 0.20017,
    "h": 321.4
  },
  "luminance": 0.15537
}

Semantic roles & 50–950 ramp

primary
#A840BA
secondary
#97C88E
accent
#D84F64
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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