#A040BC#A040BC

#A040BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.198 H 317.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A040BC
RGBrgb(160, 64, 188)
HSLhsl(286, 49%, 49%)
HSVhsv(286, 66%, 74%)
CMYKcmyk(14.9%, 66%, 0%, 26.3%)
CIE-LABlab(45.32, 57.77, -47.62)
CIE-LCHlch(45.32, 74.87, 320.50°)
OKLaboklab(55.37% 0.1469 -0.1335)
OKLCHoklch(55.37% 0.198 317.8)
XYZxyz(25.4064, 14.7723, 49.0802)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040BC #5CBC40
analogous
#6240BC #A040BC #BC409A
triadic
#A040BC #BCA040 #40BCA0
tetradic
#A040BC #BC6240 #5CBC40 #409ABC
square
#A040BC #BC6240 #5CBC40 #409ABC
split-complementary
#A040BC #9ABC40 #40BC62
monochromatic
#522161 #79308E #A040BC #B76CCD #CD9ADD

Accessibility & contrast

On white

5.31
#A040BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A040BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040BC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040BC#FFFFFF#000000##FFFFFF
##A040BC1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E65C0
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#9F5779
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a040bc;
/* rgb */ color: rgb(160, 64, 188);
/* oklch */ color: oklch(55.4% 0.198 317.8);
Tailwind
colors: {
  custom: {
    50: '#bf7cd1',
    500: '#a040bc',
    950: '#000000',
  },
}
SCSS
$custom: #a040bc;
$custom-light: #bf7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a040bc",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 286.452,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55369,
    "c": 0.19848,
    "h": 317.8
  },
  "luminance": 0.14771
}

Semantic roles & 50–950 ramp

primary
#A040BC
secondary
#9CC98F
accent
#D94F6E
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A040BC

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

Preview Lab → · Contrast checker → · Palette generator →

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