#A042C2#A042C2

#A042C2 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.0% C 0.202 H 315.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A042C2
RGBrgb(160, 66, 194)
HSLhsl(284, 51%, 51%)
HSVhsv(284, 66%, 76%)
CMYKcmyk(17.5%, 66%, 0%, 23.9%)
CIE-LABlab(46.00, 58.10, -50.04)
CIE-LCHlch(46.00, 76.68, 319.27°)
OKLaboklab(55.97% 0.1444 -0.1405)
OKLCHoklch(55.97% 0.202 315.8)
XYZxyz(26.1815, 15.2660, 52.5960)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042C2 #64C242
analogous
#6042C2 #A042C2 #C242A4
triadic
#A042C2 #C2A042 #42C2A0
tetradic
#A042C2 #C26042 #64C242 #42A4C2
square
#A042C2 #C26042 #64C242 #42A4C2
split-complementary
#A042C2 #A4C242 #42C260
monochromatic
#552268 #7B3196 #A042C2 #B770D1 #CF9FE0

Accessibility & contrast

On white

5.18
#A042C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A042C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042C2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042C2#FFFFFF#000000##FFFFFF
##A042C21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0167C6
Deuteranopia (green-blind)
#4170BF
Tritanopia (blue-blind)
#9E5A7C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a042c2;
/* rgb */ color: rgb(160, 66, 194);
/* oklch */ color: oklch(56.0% 0.202 315.8);
Tailwind
colors: {
  custom: {
    50: '#c07dd5',
    500: '#a042c2',
    950: '#000000',
  },
}
SCSS
$custom: #a042c2;
$custom-light: #c07dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a042c2",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 284.063,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55971,
    "c": 0.20152,
    "h": 315.8
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#A042C2
secondary
#A3CC94
accent
#DB4D73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A042C2

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

Preview Lab → · Contrast checker → · Palette generator →

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