#A42EA7#A42EA7

#A42EA7 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.204 H 326.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A42EA7
RGBrgb(164, 46, 167)
HSLhsl(299, 57%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(1.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(42.21, 61.84, -40.15)
CIE-LCHlch(42.21, 73.73, 327.00°)
OKLaboklab(52.87% 0.1711 -0.1114)
OKLCHoklch(52.87% 0.204 326.9)
XYZxyz(23.2615, 12.6381, 37.7659)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EA7 #31A72E
analogous
#672EA7 #A42EA7 #A72E6E
triadic
#A42EA7 #A7A42E #2EA7A4
tetradic
#A42EA7 #A7672E #31A72E #2E6EA7
square
#A42EA7 #A7672E #31A72E #2E6EA7
split-complementary
#A42EA7 #6EA72E #2EA767
monochromatic
#461447 #752177 #A42EA7 #C946CC #D776D9

Accessibility & contrast

On white

5.95
#A42EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A42EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EA7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EA7#FFFFFF#000000##FFFFFF
##A42EA71.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125AAA
Deuteranopia (green-blind)
#4C69A4
Tritanopia (blue-blind)
#A94168
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42ea7;
/* rgb */ color: rgb(164, 46, 167);
/* oklch */ color: oklch(52.9% 0.204 326.9);
Tailwind
colors: {
  custom: {
    50: '#c373c2',
    500: '#a42ea7',
    950: '#000000',
  },
}
SCSS
$custom: #a42ea7;
$custom-light: #c373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ea7",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 298.512,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.20416,
    "h": 326.9
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#A42EA7
secondary
#72C170
accent
#E0484C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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