#A042CC#A042CC

#A042CC is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.211 H 312.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A042CC
RGBrgb(160, 66, 204)
HSLhsl(281, 58%, 53%)
HSVhsv(281, 68%, 80%)
CMYKcmyk(21.6%, 67.6%, 0%, 20%)
CIE-LABlab(46.62, 60.16, -54.82)
CIE-LCHlch(46.62, 81.39, 317.66°)
OKLaboklab(56.62% 0.1438 -0.1545)
OKLCHoklch(56.62% 0.211 312.9)
XYZxyz(27.3426, 15.7304, 58.7110)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042CC #6ECC42
analogous
#5B42CC #A042CC #CC42B3
triadic
#A042CC #CCA042 #42CCA0
tetradic
#A042CC #CC5B42 #6ECC42 #42B3CC
square
#A042CC #CC5B42 #6ECC42 #42B3CC
split-complementary
#A042CC #B3CC42 #42CC5B
monochromatic
#591F74 #7E2CA4 #A042CC #B872D9 #D0A2E6

Accessibility & contrast

On white

5.07
#A042CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A042CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042CC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042CC#FFFFFF#000000##FFFFFF
##A042CC1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#3771C9
Tritanopia (blue-blind)
#9B5E82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a042cc;
/* rgb */ color: rgb(160, 66, 204);
/* oklch */ color: oklch(56.6% 0.211 312.9);
Tailwind
colors: {
  custom: {
    50: '#c07ddc',
    500: '#a042cc',
    950: '#000000',
  },
}
SCSS
$custom: #a042cc;
$custom-light: #c07ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#a042cc",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 280.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56617,
    "c": 0.21112,
    "h": 312.9
  },
  "luminance": 0.1573
}

Semantic roles & 50–950 ramp

primary
#A042CC
secondary
#AAD397
accent
#E14778
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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