#A040C3#A040C3

#A040C3 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.8% C 0.205 H 315.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#A040C3
RGBrgb(160, 64, 195)
HSLhsl(284, 52%, 51%)
HSVhsv(284, 67%, 76%)
CMYKcmyk(17.9%, 67.2%, 0%, 23.5%)
CIE-LABlab(45.75, 59.17, -51.02)
CIE-LCHlch(45.75, 78.13, 319.23°)
OKLaboklab(55.81% 0.1466 -0.1434)
OKLCHoklch(55.81% 0.205 315.6)
XYZxyz(26.1794, 15.0815, 53.1512)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C3 #63C340
analogous
#5E40C3 #A040C3 #C340A5
triadic
#A040C3 #C3A040 #40C3A0
tetradic
#A040C3 #C35E40 #63C340 #40A5C3
square
#A040C3 #C35E40 #63C340 #40A5C3
split-complementary
#A040C3 #A5C340 #40C35E
monochromatic
#552168 #7B2F97 #A040C3 #B76FD2 #CE9DE0

Accessibility & contrast

On white

5.23
#A040C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A040C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C3
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C3#FFFFFF#000000##FFFFFF
##A040C31.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#3E6FC0
Tritanopia (blue-blind)
#9E597C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040c3;
/* rgb */ color: rgb(160, 64, 195);
/* oklch */ color: oklch(55.8% 0.205 315.6);
Tailwind
colors: {
  custom: {
    50: '#c07cd6',
    500: '#a040c3',
    950: '#000000',
  },
}
SCSS
$custom: #a040c3;
$custom-light: #c07cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c3",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 283.969,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55811,
    "c": 0.20507,
    "h": 315.6
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#A040C3
secondary
#A2CC92
accent
#DC4C73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C3

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

Preview Lab → · Contrast checker → · Palette generator →

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