#A040B7#A040B7

#A040B7 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.194 H 319.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A040B7
RGBrgb(160, 64, 183)
HSLhsl(288, 48%, 48%)
HSVhsv(288, 65%, 72%)
CMYKcmyk(12.6%, 65%, 0%, 28.2%)
CIE-LABlab(45.03, 56.79, -45.17)
CIE-LCHlch(45.03, 72.56, 321.50°)
OKLaboklab(55.06% 0.147 -0.1263)
OKLCHoklch(55.06% 0.194 319.3)
XYZxyz(24.8767, 14.5604, 46.2906)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B7 #57B740
analogous
#6440B7 #A040B7 #B74092
triadic
#A040B7 #B7A040 #40B7A0
tetradic
#A040B7 #B76440 #57B740 #4092B7
square
#A040B7 #B76440 #57B740 #4092B7
split-complementary
#A040B7 #92B740 #40B764
monochromatic
#51205C #78308A #A040B7 #B869CB #CD97DB

Accessibility & contrast

On white

5.37
#A040B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A040B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B7#FFFFFF#000000##FFFFFF
##A040B71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BB
Deuteranopia (green-blind)
#486EB4
Tritanopia (blue-blind)
#A05576
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040b7;
/* rgb */ color: rgb(160, 64, 183);
/* oklch */ color: oklch(55.1% 0.194 319.3);
Tailwind
colors: {
  custom: {
    50: '#bf7ccd',
    500: '#a040b7',
    950: '#000000',
  },
}
SCSS
$custom: #a040b7;
$custom-light: #bf7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b7",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 288.403,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55062,
    "c": 0.1938,
    "h": 319.3
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#A040B7
secondary
#98C68D
accent
#D8506A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040B7

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

Preview Lab → · Contrast checker → · Palette generator →

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