#A040B2#A040B2

#A040B2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.8% C 0.189 H 321.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#A040B2
RGBrgb(160, 64, 178)
HSLhsl(291, 47%, 47%)
HSVhsv(291, 64%, 70%)
CMYKcmyk(10.1%, 64%, 0%, 30.2%)
CIE-LABlab(44.74, 55.82, -42.69)
CIE-LCHlch(44.74, 70.27, 322.59°)
OKLaboklab(54.76% 0.147 -0.119)
OKLCHoklch(54.76% 0.189 321)
XYZxyz(24.3656, 14.3559, 43.5984)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B2 #52B240
analogous
#6740B2 #A040B2 #B2408B
triadic
#A040B2 #B2A040 #40B2A0
tetradic
#A040B2 #B26740 #52B240 #408BB2
square
#A040B2 #B26740 #52B240 #408BB2
split-complementary
#A040B2 #8BB240 #40B267
monochromatic
#4F2058 #783085 #A040B2 #B967C8 #CE94D8

Accessibility & contrast

On white

5.42
#A040B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#A040B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B2#FFFFFF#000000##FFFFFF
##A040B21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#A15373
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a040b2;
/* rgb */ color: rgb(160, 64, 178);
/* oklch */ color: oklch(54.8% 0.189 321.0);
Tailwind
colors: {
  custom: {
    50: '#bf7bc9',
    500: '#a040b2',
    950: '#000000',
  },
}
SCSS
$custom: #a040b2;
$custom-light: #bf7bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b2",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 290.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54762,
    "c": 0.18916,
    "h": 321
  },
  "luminance": 0.14355
}

Semantic roles & 50–950 ramp

primary
#A040B2
secondary
#93C48A
accent
#D75166
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040B2

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

Preview Lab → · Contrast checker → · Palette generator →

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