#A840B2#A840B2

#A840B2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.193 H 324.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A840B2
RGBrgb(168, 64, 178)
HSLhsl(295, 47%, 47%)
HSVhsv(295, 64%, 70%)
CMYKcmyk(5.6%, 64%, 0%, 30.2%)
CIE-LABlab(45.92, 57.76, -40.75)
CIE-LCHlch(45.92, 70.69, 324.80°)
OKLaboklab(55.85% 0.1564 -0.1132)
OKLCHoklch(55.85% 0.193 324.1)
XYZxyz(26.0170, 15.2075, 43.6758)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840B2 #4AB240
analogous
#6F40B2 #A840B2 #B24083
triadic
#A840B2 #B2A840 #40B2A8
tetradic
#A840B2 #B26F40 #4AB240 #4083B2
square
#A840B2 #B26F40 #4AB240 #4083B2
split-complementary
#A840B2 #83B240 #40B26F
monochromatic
#532058 #7E3085 #A840B2 #C067C8 #D294D8

Accessibility & contrast

On white

5.20
#A840B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A840B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A840B2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840B2#FFFFFF#000000##FFFFFF
##A840B21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B5
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#AB5173
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a840b2;
/* rgb */ color: rgb(168, 64, 178);
/* oklch */ color: oklch(55.9% 0.193 324.1);
Tailwind
colors: {
  custom: {
    50: '#c57cc9',
    500: '#a840b2',
    950: '#000000',
  },
}
SCSS
$custom: #a840b2;
$custom-light: #c57cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a840b2",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 294.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55853,
    "c": 0.19307,
    "h": 324.1
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#A840B2
secondary
#8FC48A
accent
#D7515D
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A840B2

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

Preview Lab → · Contrast checker → · Palette generator →

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