#A840C2#A840C2

#A840C2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.207 H 318.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A840C2
RGBrgb(168, 64, 194)
HSLhsl(288, 52%, 51%)
HSVhsv(288, 67%, 76%)
CMYKcmyk(13.4%, 67%, 0%, 23.9%)
CIE-LABlab(46.83, 60.77, -48.64)
CIE-LCHlch(46.83, 77.84, 321.32°)
OKLaboklab(56.8% 0.1564 -0.1362)
OKLCHoklch(56.8% 0.207 318.9)
XYZxyz(27.7182, 15.8879, 52.6351)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840C2 #5AC240
analogous
#6740C2 #A840C2 #C2409B
triadic
#A840C2 #C2A840 #40C2A8
tetradic
#A840C2 #C26740 #5AC240 #409BC2
square
#A840C2 #C26740 #5AC240 #409BC2
split-complementary
#A840C2 #9BC240 #40C267
monochromatic
#592167 #813095 #A840C2 #BD6ED1 #D29DE0

Accessibility & contrast

On white

5.03
#A840C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A840C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840C2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840C2#FFFFFF#000000##FFFFFF
##A840C21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A68C6
Deuteranopia (green-blind)
#4872BF
Tritanopia (blue-blind)
#A8587C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a840c2;
/* rgb */ color: rgb(168, 64, 194);
/* oklch */ color: oklch(56.8% 0.207 318.9);
Tailwind
colors: {
  custom: {
    50: '#c57dd5',
    500: '#a840c2',
    950: '#000000',
  },
}
SCSS
$custom: #a840c2;
$custom-light: #c57dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a840c2",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 288,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56802,
    "c": 0.20738,
    "h": 318.9
  },
  "luminance": 0.15887
}

Semantic roles & 50–950 ramp

primary
#A840C2
secondary
#9ECC92
accent
#DB4D69
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A840C2

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

Preview Lab → · Contrast checker → · Palette generator →

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