#A040BF#A040BF

#A040BF is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.6% C 0.201 H 316.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#A040BF
RGBrgb(160, 64, 191)
HSLhsl(285, 50%, 50%)
HSVhsv(285, 66%, 75%)
CMYKcmyk(16.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.50, 58.37, -49.08)
CIE-LCHlch(45.50, 76.26, 319.94°)
OKLaboklab(55.56% 0.1468 -0.1377)
OKLCHoklch(55.56% 0.201 316.8)
XYZxyz(25.7332, 14.9030, 50.8012)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040BF #5FBF40
analogous
#6040BF #A040BF #BF409F
triadic
#A040BF #BFA040 #40BFA0
tetradic
#A040BF #BF6040 #5FBF40 #409FBF
square
#A040BF #BF6040 #5FBF40 #409FBF
split-complementary
#A040BF #9FBF40 #40BF60
monochromatic
#532163 #7A3191 #A040BF #B76ECE #CE9CDE

Accessibility & contrast

On white

5.28
#A040BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A040BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040BF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040BF#FFFFFF#000000##FFFFFF
##A040BF1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0366C3
Deuteranopia (green-blind)
#426FBC
Tritanopia (blue-blind)
#9E587A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040bf;
/* rgb */ color: rgb(160, 64, 191);
/* oklch */ color: oklch(55.6% 0.201 316.8);
Tailwind
colors: {
  custom: {
    50: '#c07cd3',
    500: '#a040bf',
    950: '#000000',
  },
}
SCSS
$custom: #a040bf;
$custom-light: #c07cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a040bf",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 285.354,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.2013,
    "h": 316.8
  },
  "luminance": 0.14902
}

Semantic roles & 50–950 ramp

primary
#A040BF
secondary
#9FCA91
accent
#D94E70
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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