#A042C7#A042C7

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

Color values

HEX#A042C7
RGBrgb(160, 66, 199)
HSLhsl(282, 54%, 52%)
HSVhsv(282, 67%, 78%)
CMYKcmyk(19.6%, 66.8%, 0%, 22%)
CIE-LABlab(46.30, 59.12, -52.44)
CIE-LCHlch(46.30, 79.03, 318.43°)
OKLaboklab(56.29% 0.1442 -0.1476)
OKLCHoklch(56.29% 0.206 314.3)
XYZxyz(26.7525, 15.4944, 55.6032)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042C7 #69C742
analogous
#5E42C7 #A042C7 #C742AC
triadic
#A042C7 #C7A042 #42C7A0
tetradic
#A042C7 #C75E42 #69C742 #42ACC7
square
#A042C7 #C75E42 #69C742 #42ACC7
split-complementary
#A042C7 #ACC742 #42C75E
monochromatic
#57216E #7D2F9D #A042C7 #B871D5 #CFA0E3

Accessibility & contrast

On white

5.12
#A042C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A042C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042C7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042C7#FFFFFF#000000##FFFFFF
##A042C71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#3C70C4
Tritanopia (blue-blind)
#9D5C7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a042c7;
/* rgb */ color: rgb(160, 66, 199);
/* oklch */ color: oklch(56.3% 0.206 314.3);
Tailwind
colors: {
  custom: {
    50: '#c07dd9',
    500: '#a042c7',
    950: '#000000',
  },
}
SCSS
$custom: #a042c7;
$custom-light: #c07dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a042c7",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 282.406,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.56291,
    "c": 0.20631,
    "h": 314.3
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#A042C7
secondary
#A6D095
accent
#DE4A75
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042C7

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

Preview Lab → · Contrast checker → · Palette generator →

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