#A42A98#A42A98

#A42A98 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.7% C 0.197 H 332.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A42A98
RGBrgb(164, 42, 152)
HSLhsl(306, 59%, 40%)
HSVhsv(306, 74%, 64%)
CMYKcmyk(0%, 74.4%, 7.3%, 35.7%)
CIE-LABlab(40.92, 60.72, -33.19)
CIE-LCHlch(40.92, 69.20, 331.34°)
OKLaboklab(51.68% 0.1746 -0.0912)
OKLCHoklch(51.68% 0.197 332.4)
XYZxyz(21.8054, 11.8173, 30.8322)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A98 #2AA436
analogous
#732AA4 #A42A98 #A42A5B
triadic
#A42A98 #98A42A #2A98A4
tetradic
#A42A98 #A4732A #2AA436 #2A5BA4
square
#A42A98 #A4732A #2AA436 #2A5BA4
split-complementary
#A42A98 #5BA42A #2AA473
monochromatic
#43113E #731E6B #A42A98 #CD3EBF #DA6ECF

Accessibility & contrast

On white

6.24
#A42A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42A98
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A98#FFFFFF#000000##FFFFFF
##A42A981.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#526795
Tritanopia (blue-blind)
#AB375F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42a98;
/* rgb */ color: rgb(164, 42, 152);
/* oklch */ color: oklch(51.7% 0.197 332.4);
Tailwind
colors: {
  custom: {
    50: '#c370b7',
    500: '#a42a98',
    950: '#000000',
  },
}
SCSS
$custom: #a42a98;
$custom-light: #c370b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a98",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 305.902,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51677,
    "c": 0.197,
    "h": 332.4
  },
  "luminance": 0.11815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A42A98

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

Preview Lab → · Contrast checker → · Palette generator →

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