#A040CA#A040CA

#A040CA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.212 H 313.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#A040CA
RGBrgb(160, 64, 202)
HSLhsl(282, 57%, 52%)
HSVhsv(282, 68%, 79%)
CMYKcmyk(20.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(46.18, 60.60, -54.37)
CIE-LCHlch(46.18, 81.42, 318.11°)
OKLaboklab(56.27% 0.1461 -0.1532)
OKLCHoklch(56.27% 0.212 313.6)
XYZxyz(26.9894, 15.4055, 57.4175)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040CA #6ACA40
analogous
#5B40CA #A040CA #CA40AF
triadic
#A040CA #CAA040 #40CAA0
tetradic
#A040CA #CA5B40 #6ACA40 #40AFCA
square
#A040CA #CA5B40 #6ACA40 #40AFCA
split-complementary
#A040CA #AFCA40 #40CA5B
monochromatic
#581F70 #7D2CA0 #A040CA #B870D7 #D0A0E5

Accessibility & contrast

On white

5.15
#A040CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#A040CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040CA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040CA#FFFFFF#000000##FFFFFF
##A040CA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#3770C7
Tritanopia (blue-blind)
#9C5C80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a040ca;
/* rgb */ color: rgb(160, 64, 202);
/* oklch */ color: oklch(56.3% 0.212 313.6);
Tailwind
colors: {
  custom: {
    50: '#c07cdb',
    500: '#a040ca',
    950: '#000000',
  },
}
SCSS
$custom: #a040ca;
$custom-light: #c07cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#a040ca",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 281.739,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56266,
    "c": 0.21172,
    "h": 313.6
  },
  "luminance": 0.15405
}

Semantic roles & 50–950 ramp

primary
#A040CA
secondary
#A7D195
accent
#E04876
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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