#A040BA#A040BA

#A040BA is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.197 H 318.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#A040BA
RGBrgb(160, 64, 186)
HSLhsl(287, 49%, 49%)
HSVhsv(287, 66%, 73%)
CMYKcmyk(14%, 65.6%, 0%, 27.1%)
CIE-LABlab(45.20, 57.38, -46.64)
CIE-LCHlch(45.20, 73.94, 320.89°)
OKLaboklab(55.25% 0.147 -0.1306)
OKLCHoklch(55.25% 0.197 318.4)
XYZxyz(25.1923, 14.6866, 47.9527)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040BA #5ABA40
analogous
#6340BA #A040BA #BA4097
triadic
#A040BA #BAA040 #40BAA0
tetradic
#A040BA #BA6340 #5ABA40 #4097BA
square
#A040BA #BA6340 #5ABA40 #4097BA
split-complementary
#A040BA #97BA40 #40BA63
monochromatic
#52215F #79308C #A040BA #B76BCC #CD99DC

Accessibility & contrast

On white

5.33
#A040BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#A040BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040BA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040BA#FFFFFF#000000##FFFFFF
##A040BA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BE
Deuteranopia (green-blind)
#466EB7
Tritanopia (blue-blind)
#A05678
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040ba;
/* rgb */ color: rgb(160, 64, 186);
/* oklch */ color: oklch(55.2% 0.197 318.4);
Tailwind
colors: {
  custom: {
    50: '#bf7ccf',
    500: '#a040ba',
    950: '#000000',
  },
}
SCSS
$custom: #a040ba;
$custom-light: #bf7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#a040ba",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 287.213,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55245,
    "c": 0.1966,
    "h": 318.4
  },
  "luminance": 0.14686
}

Semantic roles & 50–950 ramp

primary
#A040BA
secondary
#9AC88E
accent
#D84F6D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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