#A840BB#A840BB

#A840BB is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.4% C 0.201 H 321.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A840BB
RGBrgb(168, 64, 187)
HSLhsl(291, 49%, 49%)
HSVhsv(291, 66%, 73%)
CMYKcmyk(10.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(46.42, 59.43, -45.22)
CIE-LCHlch(46.42, 74.68, 322.74°)
OKLaboklab(56.38% 0.1565 -0.1262)
OKLCHoklch(56.38% 0.201 321.1)
XYZxyz(26.9505, 15.5808, 48.5919)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840BB #53BB40
analogous
#6B40BB #A840BB #BB4091
triadic
#A840BB #BBA840 #40BBA8
tetradic
#A840BB #BB6B40 #53BB40 #4091BB
square
#A840BB #BB6B40 #53BB40 #4091BB
split-complementary
#A840BB #91BB40 #40BB6B
monochromatic
#562160 #7F308D #A840BB #BE6CCD #D299DC

Accessibility & contrast

On white

5.10
#A840BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A840BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840BB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840BB#FFFFFF#000000##FFFFFF
##A840BB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C67BF
Deuteranopia (green-blind)
#4D72B8
Tritanopia (blue-blind)
#A95578
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a840bb;
/* rgb */ color: rgb(168, 64, 187);
/* oklch */ color: oklch(56.4% 0.201 321.1);
Tailwind
colors: {
  custom: {
    50: '#c57dd0',
    500: '#a840bb',
    950: '#000000',
  },
}
SCSS
$custom: #a840bb;
$custom-light: #c57dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a840bb",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 290.732,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56378,
    "c": 0.20106,
    "h": 321.1
  },
  "luminance": 0.15579
}

Semantic roles & 50–950 ramp

primary
#A840BB
secondary
#98C88F
accent
#D94F64
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A840BB

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

Preview Lab → · Contrast checker → · Palette generator →

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