#A040C1#A040C1

#A040C1 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.7% C 0.203 H 316.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A040C1
RGBrgb(160, 64, 193)
HSLhsl(285, 51%, 50%)
HSVhsv(285, 67%, 76%)
CMYKcmyk(17.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(45.62, 58.77, -50.05)
CIE-LCHlch(45.62, 77.20, 319.58°)
OKLaboklab(55.68% 0.1467 -0.1406)
OKLCHoklch(55.68% 0.203 316.2)
XYZxyz(25.9548, 14.9916, 51.9682)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C1 #61C140
analogous
#5F40C1 #A040C1 #C140A1
triadic
#A040C1 #C1A040 #40C1A0
tetradic
#A040C1 #C15F40 #61C140 #40A1C1
square
#A040C1 #C15F40 #61C140 #40A1C1
split-complementary
#A040C1 #A1C140 #40C15F
monochromatic
#542166 #7A3094 #A040C1 #B76ED0 #CE9CDF

Accessibility & contrast

On white

5.25
#A040C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A040C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C1#FFFFFF#000000##FFFFFF
##A040C11.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C5
Deuteranopia (green-blind)
#406FBE
Tritanopia (blue-blind)
#9E597B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040c1;
/* rgb */ color: rgb(160, 64, 193);
/* oklch */ color: oklch(55.7% 0.203 316.2);
Tailwind
colors: {
  custom: {
    50: '#c07cd4',
    500: '#a040c1',
    950: '#000000',
  },
}
SCSS
$custom: #a040c1;
$custom-light: #c07cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c1",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 284.651,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55683,
    "c": 0.20318,
    "h": 316.2
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

primary
#A040C1
secondary
#A0CB92
accent
#DA4D71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C1

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

Preview Lab → · Contrast checker → · Palette generator →

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