#A040B5#A040B5

#A040B5 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.192 H 320.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#A040B5
RGBrgb(160, 64, 181)
HSLhsl(289, 48%, 48%)
HSVhsv(289, 65%, 71%)
CMYKcmyk(11.6%, 64.6%, 0%, 29%)
CIE-LABlab(44.91, 56.40, -44.18)
CIE-LCHlch(44.91, 71.64, 321.93°)
OKLaboklab(54.94% 0.147 -0.1234)
OKLCHoklch(54.94% 0.192 320)
XYZxyz(24.6701, 14.4777, 45.2021)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B5 #55B540
analogous
#6640B5 #A040B5 #B5408F
triadic
#A040B5 #B5A040 #40B5A0
tetradic
#A040B5 #B56640 #55B540 #408FB5
square
#A040B5 #B56640 #55B540 #408FB5
split-complementary
#A040B5 #8FB540 #40B566
monochromatic
#50205B #783088 #A040B5 #B868CA #CE96DA

Accessibility & contrast

On white

5.39
#A040B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A040B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B5#FFFFFF#000000##FFFFFF
##A040B51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E64B9
Deuteranopia (green-blind)
#4A6EB2
Tritanopia (blue-blind)
#A15475
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a040b5;
/* rgb */ color: rgb(160, 64, 181);
/* oklch */ color: oklch(54.9% 0.192 320.0);
Tailwind
colors: {
  custom: {
    50: '#bf7ccc',
    500: '#a040b5',
    950: '#000000',
  },
}
SCSS
$custom: #a040b5;
$custom-light: #bf7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b5",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 289.231,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54941,
    "c": 0.19195,
    "h": 320
  },
  "luminance": 0.14477
}

Semantic roles & 50–950 ramp

primary
#A040B5
secondary
#96C58B
accent
#D75069
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040B5

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

Preview Lab → · Contrast checker → · Palette generator →

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