#A42A97#A42A97

#A42A97 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.196 H 332.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A42A97
RGBrgb(164, 42, 151)
HSLhsl(306, 59%, 40%)
HSVhsv(306, 74%, 64%)
CMYKcmyk(0%, 74.4%, 7.9%, 35.7%)
CIE-LABlab(40.87, 60.57, -32.67)
CIE-LCHlch(40.87, 68.82, 331.66°)
OKLaboklab(51.62% 0.1746 -0.0897)
OKLCHoklch(51.62% 0.196 332.8)
XYZxyz(21.7238, 11.7846, 30.4027)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A97 #2AA437
analogous
#742AA4 #A42A97 #A42A5A
triadic
#A42A97 #97A42A #2A97A4
tetradic
#A42A97 #A4742A #2AA437 #2A5AA4
square
#A42A97 #A4742A #2AA437 #2A5AA4
split-complementary
#A42A97 #5AA42A #2AA474
monochromatic
#43113D #731E6A #A42A97 #CD3EBE #DA6ECF

Accessibility & contrast

On white

6.26
#A42A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A42A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A97
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A97#FFFFFF#000000##FFFFFF
##A42A971.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#536694
Tritanopia (blue-blind)
#AB375E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42a97;
/* rgb */ color: rgb(164, 42, 151);
/* oklch */ color: oklch(51.6% 0.196 332.8);
Tailwind
colors: {
  custom: {
    50: '#c370b6',
    500: '#a42a97',
    950: '#000000',
  },
}
SCSS
$custom: #a42a97;
$custom-light: #c370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a97",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 306.393,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51622,
    "c": 0.19626,
    "h": 332.8
  },
  "luminance": 0.11783
}

Semantic roles & 50–950 ramp

primary
#A42A97
secondary
#69C172
accent
#E25645
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42A97

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

Preview Lab → · Contrast checker → · Palette generator →

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