#A040C8#A040C8

#A040C8 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.210 H 314.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A040C8
RGBrgb(160, 64, 200)
HSLhsl(282, 55%, 52%)
HSVhsv(282, 68%, 78%)
CMYKcmyk(20%, 68%, 0%, 21.6%)
CIE-LABlab(46.06, 60.19, -53.41)
CIE-LCHlch(46.06, 80.48, 318.41°)
OKLaboklab(56.13% 0.1463 -0.1504)
OKLCHoklch(56.13% 0.21 314.2)
XYZxyz(26.7542, 15.3114, 56.1784)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C8 #68C840
analogous
#5C40C8 #A040C8 #C840AC
triadic
#A040C8 #C8A040 #40C8A0
tetradic
#A040C8 #C85C40 #68C840 #40ACC8
square
#A040C8 #C85C40 #68C840 #40ACC8
split-complementary
#A040C8 #ACC840 #40C85C
monochromatic
#57206E #7C2D9D #A040C8 #B870D6 #CF9FE3

Accessibility & contrast

On white

5.17
#A040C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A040C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C8#FFFFFF#000000##FFFFFF
##A040C81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#396FC5
Tritanopia (blue-blind)
#9C5B7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a040c8;
/* rgb */ color: rgb(160, 64, 200);
/* oklch */ color: oklch(56.1% 0.210 314.2);
Tailwind
colors: {
  custom: {
    50: '#c07cd9',
    500: '#a040c8',
    950: '#000000',
  },
}
SCSS
$custom: #a040c8;
$custom-light: #c07cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c8",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 282.353,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.20982,
    "h": 314.2
  },
  "luminance": 0.15311
}

Semantic roles & 50–950 ramp

primary
#A040C8
secondary
#A6D094
accent
#DF4975
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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