#A040C5#A040C5

#A040C5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 55.9% C 0.207 H 315.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A040C5
RGBrgb(160, 64, 197)
HSLhsl(283, 53%, 51%)
HSVhsv(283, 68%, 77%)
CMYKcmyk(18.8%, 67.5%, 0%, 22.7%)
CIE-LABlab(45.87, 59.58, -51.98)
CIE-LCHlch(45.87, 79.07, 318.90°)
OKLaboklab(55.94% 0.1465 -0.1462)
OKLCHoklch(55.94% 0.207 315.1)
XYZxyz(26.4070, 15.1725, 54.3501)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C5 #65C540
analogous
#5D40C5 #A040C5 #C540A7
triadic
#A040C5 #C5A040 #40C5A0
tetradic
#A040C5 #C55D40 #65C540 #40A7C5
square
#A040C5 #C55D40 #65C540 #40A7C5
split-complementary
#A040C5 #A7C540 #40C55D
monochromatic
#56206A #7C2F99 #A040C5 #B76FD3 #CF9EE2

Accessibility & contrast

On white

5.21
#A040C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A040C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C5#FFFFFF#000000##FFFFFF
##A040C51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#3D6FC2
Tritanopia (blue-blind)
#9D5A7D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a040c5;
/* rgb */ color: rgb(160, 64, 197);
/* oklch */ color: oklch(55.9% 0.207 315.1);
Tailwind
colors: {
  custom: {
    50: '#c07cd7',
    500: '#a040c5',
    950: '#000000',
  },
}
SCSS
$custom: #a040c5;
$custom-light: #c07cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c5",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 283.308,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55939,
    "c": 0.20697,
    "h": 315.1
  },
  "luminance": 0.15172
}

Semantic roles & 50–950 ramp

primary
#A040C5
secondary
#A3CE93
accent
#DD4B74
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C5

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

Preview Lab → · Contrast checker → · Palette generator →

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