#A840BF#A840BF

#A840BF is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.6% C 0.205 H 319.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A840BF
RGBrgb(168, 64, 191)
HSLhsl(289, 50%, 50%)
HSVhsv(289, 66%, 75%)
CMYKcmyk(12%, 66.5%, 0%, 25.1%)
CIE-LABlab(46.65, 60.19, -47.18)
CIE-LCHlch(46.65, 76.48, 321.91°)
OKLaboklab(56.62% 0.1565 -0.1319)
OKLCHoklch(56.62% 0.205 319.9)
XYZxyz(27.3846, 15.7545, 50.8786)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840BF #57BF40
analogous
#6940BF #A840BF #BF4096
triadic
#A840BF #BFA840 #40BFA8
tetradic
#A840BF #BF6940 #57BF40 #4096BF
square
#A840BF #BF6940 #57BF40 #4096BF
split-complementary
#A840BF #96BF40 #40BF69
monochromatic
#572163 #803191 #A840BF #BD6ECE #D29CDE

Accessibility & contrast

On white

5.06
#A840BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A840BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840BF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840BF#FFFFFF#000000##FFFFFF
##A840BF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1467C3
Deuteranopia (green-blind)
#4A72BC
Tritanopia (blue-blind)
#A9567A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a840bf;
/* rgb */ color: rgb(168, 64, 191);
/* oklch */ color: oklch(56.6% 0.205 319.9);
Tailwind
colors: {
  custom: {
    50: '#c57dd3',
    500: '#a840bf',
    950: '#000000',
  },
}
SCSS
$custom: #a840bf;
$custom-light: #c57dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a840bf",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 289.134,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.56619,
    "c": 0.20467,
    "h": 319.9
  },
  "luminance": 0.15753
}

Semantic roles & 50–950 ramp

primary
#A840BF
secondary
#9BCA91
accent
#D94E68
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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