#A840DB#A840DB

#A840DB is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.230 H 312.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A840DB
RGBrgb(168, 64, 219)
HSLhsl(280, 68%, 55%)
HSVhsv(280, 71%, 86%)
CMYKcmyk(23.3%, 70.8%, 0%, 14.1%)
CIE-LABlab(48.39, 65.74, -60.50)
CIE-LCHlch(48.39, 89.34, 317.38°)
OKLaboklab(58.42% 0.1544 -0.1709)
OKLCHoklch(58.42% 0.23 312.1)
XYZxyz(30.7657, 17.1069, 68.6854)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840DB #73DB40
analogous
#5A40DB #A840DB #DB40C0
triadic
#A840DB #DBA840 #40DBA8
tetradic
#A840DB #DB5A40 #73DB40 #40C0DB
square
#A840DB #DB5A40 #73DB40 #40C0DB
split-complementary
#A840DB #C0DB40 #40DB5A
monochromatic
#631987 #8923BB #A840DB #BF73E5 #D7A7EE

Accessibility & contrast

On white

4.75
#A840DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#A840DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840DB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840DB#FFFFFF#000000##FFFFFF
##A840DB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2D75D8
Tritanopia (blue-blind)
#A2628A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a840db;
/* rgb */ color: rgb(168, 64, 219);
/* oklch */ color: oklch(58.4% 0.230 312.1);
Tailwind
colors: {
  custom: {
    50: '#c67ee7',
    500: '#a840db',
    950: '#000000',
  },
}
SCSS
$custom: #a840db;
$custom-light: #c67ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#a840db",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 280.258,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58423,
    "c": 0.23036,
    "h": 312.1
  },
  "luminance": 0.17106
}

Semantic roles & 50–950 ramp

primary
#A840DB
secondary
#B0DC9B
accent
#EB3D76
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A840DB

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

Preview Lab → · Contrast checker → · Palette generator →

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