#A42DA7#A42DA7

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

Color values

HEX#A42DA7
RGBrgb(164, 45, 167)
HSLhsl(299, 58%, 42%)
HSVhsv(299, 73%, 65%)
CMYKcmyk(1.8%, 73.1%, 0%, 34.5%)
CIE-LABlab(42.09, 62.18, -40.34)
CIE-LCHlch(42.09, 74.12, 327.02°)
OKLaboklab(52.78% 0.172 -0.112)
OKLCHoklch(52.78% 0.205 326.9)
XYZxyz(23.2229, 12.5609, 37.7531)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42DA7 #30A72D
analogous
#672DA7 #A42DA7 #A72D6D
triadic
#A42DA7 #A7A42D #2DA7A4
tetradic
#A42DA7 #A7672D #30A72D #2D6DA7
square
#A42DA7 #A7672D #30A72D #2D6DA7
split-complementary
#A42DA7 #6DA72D #2DA767
monochromatic
#451347 #752077 #A42DA7 #C944CD #D775DA

Accessibility & contrast

On white

5.98
#A42DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A42DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42DA7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42DA7#FFFFFF#000000##FFFFFF
##A42DA71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#4B69A4
Tritanopia (blue-blind)
#A94168
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42da7;
/* rgb */ color: rgb(164, 45, 167);
/* oklch */ color: oklch(52.8% 0.205 326.9);
Tailwind
colors: {
  custom: {
    50: '#c372c2',
    500: '#a42da7',
    950: '#000000',
  },
}
SCSS
$custom: #a42da7;
$custom-light: #c372c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42da7",
  "rgb": {
    "r": 164,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 298.525,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52781,
    "c": 0.20525,
    "h": 326.9
  },
  "luminance": 0.12559
}

Semantic roles & 50–950 ramp

primary
#A42DA7
secondary
#70C16E
accent
#E1474B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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