#A840C0#A840C0

#A840C0 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.206 H 319.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A840C0
RGBrgb(168, 64, 192)
HSLhsl(289, 50%, 50%)
HSVhsv(289, 67%, 75%)
CMYKcmyk(12.5%, 66.7%, 0%, 24.7%)
CIE-LABlab(46.71, 60.38, -47.67)
CIE-LCHlch(46.71, 76.93, 321.71°)
OKLaboklab(56.68% 0.1565 -0.1333)
OKLCHoklch(56.68% 0.206 319.6)
XYZxyz(27.4951, 15.7987, 51.4601)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840C0 #58C040
analogous
#6840C0 #A840C0 #C04098
triadic
#A840C0 #C0A840 #40C0A8
tetradic
#A840C0 #C06840 #58C040 #4098C0
square
#A840C0 #C06840 #58C040 #4098C0
split-complementary
#A840C0 #98C040 #40C068
monochromatic
#582164 #803092 #A840C0 #BD6ECF #D29CDE

Accessibility & contrast

On white

5.05
#A840C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A840C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840C0
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840C0#FFFFFF#000000##FFFFFF
##A840C01.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1168C4
Deuteranopia (green-blind)
#4A72BD
Tritanopia (blue-blind)
#A8577B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a840c0;
/* rgb */ color: rgb(168, 64, 192);
/* oklch */ color: oklch(56.7% 0.206 319.6);
Tailwind
colors: {
  custom: {
    50: '#c57dd4',
    500: '#a840c0',
    950: '#000000',
  },
}
SCSS
$custom: #a840c0;
$custom-light: #c57dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#a840c0",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 288.75,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5668,
    "c": 0.20556,
    "h": 319.6
  },
  "luminance": 0.15797
}

Semantic roles & 50–950 ramp

primary
#A840C0
secondary
#9CCB91
accent
#DA4E68
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A840C0

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

Preview Lab → · Contrast checker → · Palette generator →

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