#A042CD#A042CD

#A042CD is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.212 H 312.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A042CD
RGBrgb(160, 66, 205)
HSLhsl(281, 58%, 53%)
HSVhsv(281, 68%, 80%)
CMYKcmyk(22%, 67.8%, 0%, 19.6%)
CIE-LABlab(46.68, 60.37, -55.30)
CIE-LCHlch(46.68, 81.86, 317.51°)
OKLaboklab(56.68% 0.1437 -0.1559)
OKLCHoklch(56.68% 0.212 312.7)
XYZxyz(27.4629, 15.7786, 59.3447)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042CD #6FCD42
analogous
#5B42CD #A042CD #CD42B4
triadic
#A042CD #CDA042 #42CDA0
tetradic
#A042CD #CD5B42 #6FCD42 #42B4CD
square
#A042CD #CD5B42 #6FCD42 #42B4CD
split-complementary
#A042CD #B4CD42 #42CD5B
monochromatic
#5A1F76 #7E2CA6 #A042CD #B872DA #D1A3E7

Accessibility & contrast

On white

5.05
#A042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A042CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042CD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042CD#FFFFFF#000000##FFFFFF
##A042CD1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3671CA
Tritanopia (blue-blind)
#9B5F82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a042cd;
/* rgb */ color: rgb(160, 66, 205);
/* oklch */ color: oklch(56.7% 0.212 312.7);
Tailwind
colors: {
  custom: {
    50: '#c07ddd',
    500: '#a042cd',
    950: '#000000',
  },
}
SCSS
$custom: #a042cd;
$custom-light: #c07ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a042cd",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 280.576,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56683,
    "c": 0.21208,
    "h": 312.7
  },
  "luminance": 0.15778
}

Semantic roles & 50–950 ramp

primary
#A042CD
secondary
#ABD397
accent
#E14679
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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