#A040BD#A040BD

#A040BD is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.199 H 317.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#A040BD
RGBrgb(160, 64, 189)
HSLhsl(286, 49%, 50%)
HSVhsv(286, 66%, 74%)
CMYKcmyk(15.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(45.38, 57.97, -48.11)
CIE-LCHlch(45.38, 75.33, 320.31°)
OKLaboklab(55.43% 0.1469 -0.1349)
OKLCHoklch(55.43% 0.199 317.4)
XYZxyz(25.5146, 14.8155, 49.6499)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040BD #5DBD40
analogous
#6240BD #A040BD #BD409C
triadic
#A040BD #BDA040 #40BDA0
tetradic
#A040BD #BD6240 #5DBD40 #409CBD
square
#A040BD #BD6240 #5DBD40 #409CBD
split-complementary
#A040BD #9CBD40 #40BD62
monochromatic
#532162 #79318F #A040BD #B76DCD #CE9ADD

Accessibility & contrast

On white

5.30
#A040BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#A040BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040BD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040BD#FFFFFF#000000##FFFFFF
##A040BD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B65C1
Deuteranopia (green-blind)
#446EBA
Tritanopia (blue-blind)
#9F5779
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040bd;
/* rgb */ color: rgb(160, 64, 189);
/* oklch */ color: oklch(55.4% 0.199 317.4);
Tailwind
colors: {
  custom: {
    50: '#bf7cd1',
    500: '#a040bd',
    950: '#000000',
  },
}
SCSS
$custom: #a040bd;
$custom-light: #bf7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a040bd",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 286.08,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55431,
    "c": 0.19942,
    "h": 317.4
  },
  "luminance": 0.14814
}

Semantic roles & 50–950 ramp

primary
#A040BD
secondary
#9DC990
accent
#D94F6F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040BD

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

Preview Lab → · Contrast checker → · Palette generator →

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