#A040B3#A040B3

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

Color values

HEX#A040B3
RGBrgb(160, 64, 179)
HSLhsl(290, 47%, 48%)
HSVhsv(290, 64%, 70%)
CMYKcmyk(10.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(44.80, 56.01, -43.19)
CIE-LCHlch(44.80, 70.73, 322.37°)
OKLaboklab(54.82% 0.147 -0.1205)
OKLCHoklch(54.82% 0.19 320.7)
XYZxyz(24.4663, 14.3962, 44.1291)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040B3 #53B340
analogous
#6640B3 #A040B3 #B3408C
triadic
#A040B3 #B3A040 #40B3A0
tetradic
#A040B3 #B36640 #53B340 #408CB3
square
#A040B3 #B36640 #53B340 #408CB3
split-complementary
#A040B3 #8CB340 #40B366
monochromatic
#4F2059 #783086 #A040B3 #B967C9 #CE94D9

Accessibility & contrast

On white

5.41
#A040B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#A040B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040B3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040B3#FFFFFF#000000##FFFFFF
##A040B31.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B6
Deuteranopia (green-blind)
#4B6DB0
Tritanopia (blue-blind)
#A15374
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a040b3;
/* rgb */ color: rgb(160, 64, 179);
/* oklch */ color: oklch(54.8% 0.190 320.7);
Tailwind
colors: {
  custom: {
    50: '#bf7bca',
    500: '#a040b3',
    950: '#000000',
  },
}
SCSS
$custom: #a040b3;
$custom-light: #bf7bca;
$custom-dark: #000000;
JSON
{
  "hex": "#a040b3",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 290.087,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54821,
    "c": 0.19009,
    "h": 320.7
  },
  "luminance": 0.14395
}

Semantic roles & 50–950 ramp

primary
#A040B3
secondary
#94C48A
accent
#D75167
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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