#A040B9#A040B9

#A040B9 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.2% C 0.196 H 318.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#A040B9
RGBrgb(160, 64, 185)
HSLhsl(288, 49%, 49%)
HSVhsv(288, 65%, 73%)
CMYKcmyk(13.5%, 65.4%, 0%, 27.5%)
CIE-LABlab(45.14, 57.18, -46.15)
CIE-LCHlch(45.14, 73.48, 321.09°)
OKLaboklab(55.18% 0.147 -0.1291)
OKLCHoklch(55.18% 0.196 318.7)
XYZxyz(25.0864, 14.6443, 47.3947)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B9 #59B940
analogous
#6440B9 #A040B9 #B94096
triadic
#A040B9 #B9A040 #40B9A0
tetradic
#A040B9 #B96440 #59B940 #4096B9
square
#A040B9 #B96440 #59B940 #4096B9
split-complementary
#A040B9 #96B940 #40B964
monochromatic
#51215E #79308C #A040B9 #B86BCC #CD98DB

Accessibility & contrast

On white

5.35
#A040B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#A040B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B9#FFFFFF#000000##FFFFFF
##A040B91.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1664BD
Deuteranopia (green-blind)
#476EB6
Tritanopia (blue-blind)
#A05577
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040b9;
/* rgb */ color: rgb(160, 64, 185);
/* oklch */ color: oklch(55.2% 0.196 318.7);
Tailwind
colors: {
  custom: {
    50: '#bf7cce',
    500: '#a040b9',
    950: '#000000',
  },
}
SCSS
$custom: #a040b9;
$custom-light: #bf7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b9",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 287.603,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55184,
    "c": 0.19567,
    "h": 318.7
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#A040B9
secondary
#9AC78E
accent
#D8506C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040B9

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

Preview Lab → · Contrast checker → · Palette generator →

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