#A840BC#A840BC

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

Color values

HEX#A840BC
RGBrgb(168, 64, 188)
HSLhsl(290, 49%, 49%)
HSVhsv(290, 66%, 74%)
CMYKcmyk(10.6%, 66%, 0%, 26.3%)
CIE-LABlab(46.48, 59.62, -45.71)
CIE-LCHlch(46.48, 75.13, 322.52°)
OKLaboklab(56.44% 0.1565 -0.1276)
OKLCHoklch(56.44% 0.202 320.8)
XYZxyz(27.0579, 15.6238, 49.1577)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840BC #54BC40
analogous
#6A40BC #A840BC #BC4092
triadic
#A840BC #BCA840 #40BCA8
tetradic
#A840BC #BC6A40 #54BC40 #4092BC
square
#A840BC #BC6A40 #54BC40 #4092BC
split-complementary
#A840BC #92BC40 #40BC6A
monochromatic
#562161 #7F308E #A840BC #BD6CCD #D29ADD

Accessibility & contrast

On white

5.09
#A840BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A840BC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840BC#FFFFFF#000000##FFFFFF
##A840BC1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C0
Deuteranopia (green-blind)
#4D72B9
Tritanopia (blue-blind)
#A95579
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a840bc;
/* rgb */ color: rgb(168, 64, 188);
/* oklch */ color: oklch(56.4% 0.202 320.8);
Tailwind
colors: {
  custom: {
    50: '#c57dd1',
    500: '#a840bc',
    950: '#000000',
  },
}
SCSS
$custom: #a840bc;
$custom-light: #c57dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a840bc",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 290.323,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56438,
    "c": 0.20196,
    "h": 320.8
  },
  "luminance": 0.15622
}

Semantic roles & 50–950 ramp

primary
#A840BC
secondary
#99C98F
accent
#D94F65
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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