#A040CB#A040CB

#A040CB is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.3% C 0.213 H 313.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A040CB
RGBrgb(160, 64, 203)
HSLhsl(281, 57%, 52%)
HSVhsv(281, 68%, 80%)
CMYKcmyk(21.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(46.25, 60.81, -54.84)
CIE-LCHlch(46.25, 81.89, 317.95°)
OKLaboklab(56.33% 0.1461 -0.1546)
OKLCHoklch(56.33% 0.213 313.4)
XYZxyz(27.1082, 15.4530, 58.0431)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040CB #6BCB40
analogous
#5B40CB #A040CB #CB40B1
triadic
#A040CB #CBA040 #40CBA0
tetradic
#A040CB #CB5B40 #6BCB40 #40B1CB
square
#A040CB #CB5B40 #6BCB40 #40B1CB
split-complementary
#A040CB #B1CB40 #40CB5B
monochromatic
#581F72 #7D2CA2 #A040CB #B870D8 #D0A0E5

Accessibility & contrast

On white

5.13
#A040CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#A040CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040CB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040CB#FFFFFF#000000##FFFFFF
##A040CB1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#9C5D81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a040cb;
/* rgb */ color: rgb(160, 64, 203);
/* oklch */ color: oklch(56.3% 0.213 313.4);
Tailwind
colors: {
  custom: {
    50: '#c07cdc',
    500: '#a040cb',
    950: '#000000',
  },
}
SCSS
$custom: #a040cb;
$custom-light: #c07cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a040cb",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 281.439,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56332,
    "c": 0.21267,
    "h": 313.4
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#A040CB
secondary
#A8D295
accent
#E04777
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040CB

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

Preview Lab → · Contrast checker → · Palette generator →

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