#A840DD#A840DD

#A840DD is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.232 H 311.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#A840DD
RGBrgb(168, 64, 221)
HSLhsl(280, 70%, 56%)
HSVhsv(280, 71%, 87%)
CMYKcmyk(24%, 71%, 0%, 13.3%)
CIE-LABlab(48.53, 66.15, -61.43)
CIE-LCHlch(48.53, 90.27, 317.12°)
OKLaboklab(58.56% 0.1542 -0.1737)
OKLCHoklch(58.56% 0.232 311.6)
XYZxyz(31.0306, 17.2129, 70.0804)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840DD #75DD40
analogous
#5940DD #A840DD #DD40C4
triadic
#A840DD #DDA840 #40DDA8
tetradic
#A840DD #DD5940 #75DD40 #40C4DD
square
#A840DD #DD5940 #75DD40 #40C4DD
split-complementary
#A840DD #C4DD40 #40DD59
monochromatic
#64198A #8922BE #A840DD #C074E6 #D7A8EF

Accessibility & contrast

On white

4.73
#A840DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A840DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840DD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840DD#FFFFFF#000000##FFFFFF
##A840DD1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE1
Deuteranopia (green-blind)
#2A75DA
Tritanopia (blue-blind)
#A1638B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a840dd;
/* rgb */ color: rgb(168, 64, 221);
/* oklch */ color: oklch(58.6% 0.232 311.6);
Tailwind
colors: {
  custom: {
    50: '#c67ee8',
    500: '#a840dd',
    950: '#000000',
  },
}
SCSS
$custom: #a840dd;
$custom-light: #c67ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a840dd",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 279.745,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5856,
    "c": 0.23222,
    "h": 311.6
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#A840DD
secondary
#B2DD9C
accent
#ED3B77
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A840DD

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

Preview Lab → · Contrast checker → · Palette generator →

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