#A840BD#A840BD

#A840BD is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.5% C 0.203 H 320.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A840BD
RGBrgb(168, 64, 189)
HSLhsl(290, 49%, 50%)
HSVhsv(290, 66%, 74%)
CMYKcmyk(11.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(46.53, 59.81, -46.20)
CIE-LCHlch(46.53, 75.58, 322.32°)
OKLaboklab(56.5% 0.1565 -0.1291)
OKLCHoklch(56.5% 0.203 320.5)
XYZxyz(27.1661, 15.6671, 49.7274)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840BD #55BD40
analogous
#6A40BD #A840BD #BD4094
triadic
#A840BD #BDA840 #40BDA8
tetradic
#A840BD #BD6A40 #55BD40 #4094BD
square
#A840BD #BD6A40 #55BD40 #4094BD
split-complementary
#A840BD #94BD40 #40BD6A
monochromatic
#572162 #7F318F #A840BD #BD6DCD #D29ADD

Accessibility & contrast

On white

5.08
#A840BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A840BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840BD
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840BD#FFFFFF#000000##FFFFFF
##A840BD1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1867C1
Deuteranopia (green-blind)
#4C72BA
Tritanopia (blue-blind)
#A95679
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a840bd;
/* rgb */ color: rgb(168, 64, 189);
/* oklch */ color: oklch(56.5% 0.203 320.5);
Tailwind
colors: {
  custom: {
    50: '#c57dd1',
    500: '#a840bd',
    950: '#000000',
  },
}
SCSS
$custom: #a840bd;
$custom-light: #c57dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a840bd",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 289.92,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56498,
    "c": 0.20286,
    "h": 320.5
  },
  "luminance": 0.15666
}

Semantic roles & 50–950 ramp

primary
#A840BD
secondary
#99C990
accent
#D94F66
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A840BD

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

Preview Lab → · Contrast checker → · Palette generator →

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