#A040B8#A040B8

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

Color values

HEX#A040B8
RGBrgb(160, 64, 184)
HSLhsl(288, 48%, 49%)
HSVhsv(288, 65%, 72%)
CMYKcmyk(13%, 65.2%, 0%, 27.8%)
CIE-LABlab(45.08, 56.98, -45.66)
CIE-LCHlch(45.08, 73.02, 321.29°)
OKLaboklab(55.12% 0.147 -0.1277)
OKLCHoklch(55.12% 0.195 319)
XYZxyz(24.9812, 14.6022, 46.8407)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B8 #58B840
analogous
#6440B8 #A040B8 #B84094
triadic
#A040B8 #B8A040 #40B8A0
tetradic
#A040B8 #B86440 #58B840 #4094B8
square
#A040B8 #B86440 #58B840 #4094B8
split-complementary
#A040B8 #94B840 #40B864
monochromatic
#51205D #79308B #A040B8 #B86ACB #CD97DB

Accessibility & contrast

On white

5.36
#A040B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#A040B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B8#FFFFFF#000000##FFFFFF
##A040B81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BC
Deuteranopia (green-blind)
#486EB5
Tritanopia (blue-blind)
#A05576
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040b8;
/* rgb */ color: rgb(160, 64, 184);
/* oklch */ color: oklch(55.1% 0.195 319.0);
Tailwind
colors: {
  custom: {
    50: '#bf7cce',
    500: '#a040b8',
    950: '#000000',
  },
}
SCSS
$custom: #a040b8;
$custom-light: #bf7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b8",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 288,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55123,
    "c": 0.19474,
    "h": 319
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#A040B8
secondary
#99C78D
accent
#D8506B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040B8

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

Preview Lab → · Contrast checker → · Palette generator →

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