#A840DE#A840DE

#A840DE is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.6% C 0.233 H 311.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A840DE
RGBrgb(168, 64, 222)
HSLhsl(279, 71%, 56%)
HSVhsv(279, 71%, 87%)
CMYKcmyk(24.3%, 71.2%, 0%, 12.9%)
CIE-LABlab(48.59, 66.36, -61.89)
CIE-LCHlch(48.59, 90.74, 317.00°)
OKLaboklab(58.63% 0.154 -0.175)
OKLCHoklch(58.63% 0.233 311.4)
XYZxyz(31.1642, 17.2663, 70.7841)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840DE #76DE40
analogous
#5940DE #A840DE #DE40C5
triadic
#A840DE #DEA840 #40DEA8
tetradic
#A840DE #DE5940 #76DE40 #40C5DE
square
#A840DE #DE5940 #76DE40 #40C5DE
split-complementary
#A840DE #C5DE40 #40DE59
monochromatic
#64188B #8921C0 #A840DE #C074E7 #D8A8F0

Accessibility & contrast

On white

4.72
#A840DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#A840DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840DE
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840DE#FFFFFF#000000##FFFFFF
##A840DE1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE3
Deuteranopia (green-blind)
#2875DB
Tritanopia (blue-blind)
#A1638B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a840de;
/* rgb */ color: rgb(168, 64, 222);
/* oklch */ color: oklch(58.6% 0.233 311.4);
Tailwind
colors: {
  custom: {
    50: '#c77ee9',
    500: '#a840de',
    950: '#000000',
  },
}
SCSS
$custom: #a840de;
$custom-light: #c77ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#a840de",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 279.494,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58628,
    "c": 0.23315,
    "h": 311.4
  },
  "luminance": 0.17266
}

Semantic roles & 50–950 ramp

primary
#A840DE
secondary
#B3DE9C
accent
#ED3A78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A840DE

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

Preview Lab → · Contrast checker → · Palette generator →

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