#A040BB#A040BB

#A040BB is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.3% C 0.198 H 318.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#A040BB
RGBrgb(160, 64, 187)
HSLhsl(287, 49%, 49%)
HSVhsv(287, 66%, 73%)
CMYKcmyk(14.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(45.26, 57.57, -47.13)
CIE-LCHlch(45.26, 74.41, 320.69°)
OKLaboklab(55.31% 0.147 -0.132)
OKLCHoklch(55.31% 0.198 318.1)
XYZxyz(25.2990, 14.7293, 48.5145)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040BB #5BBB40
analogous
#6340BB #A040BB #BB4099
triadic
#A040BB #BBA040 #40BBA0
tetradic
#A040BB #BB6340 #5BBB40 #4099BB
square
#A040BB #BB6340 #5BBB40 #4099BB
split-complementary
#A040BB #99BB40 #40BB63
monochromatic
#522160 #79308D #A040BB #B76CCD #CD99DC

Accessibility & contrast

On white

5.32
#A040BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A040BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040BB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040BB#FFFFFF#000000##FFFFFF
##A040BB1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1165BF
Deuteranopia (green-blind)
#456EB8
Tritanopia (blue-blind)
#9F5678
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040bb;
/* rgb */ color: rgb(160, 64, 187);
/* oklch */ color: oklch(55.3% 0.198 318.1);
Tailwind
colors: {
  custom: {
    50: '#bf7cd0',
    500: '#a040bb',
    950: '#000000',
  },
}
SCSS
$custom: #a040bb;
$custom-light: #bf7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a040bb",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 286.829,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55307,
    "c": 0.19754,
    "h": 318.1
  },
  "luminance": 0.14728
}

Semantic roles & 50–950 ramp

primary
#A040BB
secondary
#9BC88F
accent
#D94F6D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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