#A840DF#A840DF

#A840DF is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.234 H 311.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#A840DF
RGBrgb(168, 64, 223)
HSLhsl(279, 71%, 56%)
HSVhsv(279, 71%, 87%)
CMYKcmyk(24.7%, 71.3%, 0%, 12.5%)
CIE-LABlab(48.66, 66.56, -62.35)
CIE-LCHlch(48.66, 91.20, 316.87°)
OKLaboklab(58.7% 0.1539 -0.1764)
OKLCHoklch(58.7% 0.234 311.1)
XYZxyz(31.2986, 17.3201, 71.4921)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840DF #77DF40
analogous
#5940DF #A840DF #DF40C7
triadic
#A840DF #DFA840 #40DFA8
tetradic
#A840DF #DF5940 #77DF40 #40C7DF
square
#A840DF #DF5940 #77DF40 #40C7DF
split-complementary
#A840DF #C7DF40 #40DF59
monochromatic
#64188D #8A20C1 #A840DF #C074E8 #D8A9F1

Accessibility & contrast

On white

4.70
#A840DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A840DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840DF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840DF#FFFFFF#000000##FFFFFF
##A840DF1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#2675DC
Tritanopia (blue-blind)
#A1638C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a840df;
/* rgb */ color: rgb(168, 64, 223);
/* oklch */ color: oklch(58.7% 0.234 311.1);
Tailwind
colors: {
  custom: {
    50: '#c77eea',
    500: '#a840df',
    950: '#000000',
  },
}
SCSS
$custom: #a840df;
$custom-light: #c77eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a840df",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 279.245,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58697,
    "c": 0.23408,
    "h": 311.1
  },
  "luminance": 0.17319
}

Semantic roles & 50–950 ramp

primary
#A840DF
secondary
#B3DE9D
accent
#EE3A78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A840DF

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

Preview Lab → · Contrast checker → · Palette generator →

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