#A040C2#A040C2

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

Color values

HEX#A040C2
RGBrgb(160, 64, 194)
HSLhsl(284, 52%, 51%)
HSVhsv(284, 67%, 76%)
CMYKcmyk(17.5%, 67%, 0%, 23.9%)
CIE-LABlab(45.68, 58.97, -50.54)
CIE-LCHlch(45.68, 77.66, 319.41°)
OKLaboklab(55.75% 0.1467 -0.142)
OKLCHoklch(55.75% 0.204 315.9)
XYZxyz(26.0667, 15.0364, 52.5577)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C2 #62C240
analogous
#5F40C2 #A040C2 #C240A3
triadic
#A040C2 #C2A040 #40C2A0
tetradic
#A040C2 #C25F40 #62C240 #40A3C2
square
#A040C2 #C25F40 #62C240 #40A3C2
split-complementary
#A040C2 #A3C240 #40C25F
monochromatic
#542167 #7B3095 #A040C2 #B76ED1 #CE9DE0

Accessibility & contrast

On white

5.24
#A040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#A040C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C2#FFFFFF#000000##FFFFFF
##A040C21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#3F6FBF
Tritanopia (blue-blind)
#9E597C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040c2;
/* rgb */ color: rgb(160, 64, 194);
/* oklch */ color: oklch(55.7% 0.204 315.9);
Tailwind
colors: {
  custom: {
    50: '#c07cd5',
    500: '#a040c2',
    950: '#000000',
  },
}
SCSS
$custom: #a040c2;
$custom-light: #c07cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c2",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 284.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.20413,
    "h": 315.9
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#A040C2
secondary
#A1CC92
accent
#DB4D72
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C2

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

Preview Lab → · Contrast checker → · Palette generator →

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