#A42F9A#A42F9A

#A42F9A is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.2% C 0.193 H 331.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A42F9A
RGBrgb(164, 47, 154)
HSLhsl(305, 55%, 41%)
HSVhsv(305, 71%, 64%)
CMYKcmyk(0%, 71.3%, 6.1%, 35.7%)
CIE-LABlab(41.63, 59.34, -33.29)
CIE-LCHlch(41.63, 68.04, 330.71°)
OKLaboklab(52.22% 0.1698 -0.0915)
OKLCHoklch(52.22% 0.193 331.7)
XYZxyz(22.1591, 12.2604, 31.7650)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9A #2FA439
analogous
#742FA4 #A42F9A #A42F60
triadic
#A42F9A #9AA42F #2F9AA4
tetradic
#A42F9A #A4742F #2FA439 #2F60A4
square
#A42F9A #A4742F #2FA439 #2F60A4
split-complementary
#A42F9A #60A42F #2FA474
monochromatic
#451441 #74216D #A42F9A #CA46BF #D876CF

Accessibility & contrast

On white

6.08
#A42F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A42F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F9A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9A#FFFFFF#000000##FFFFFF
##A42F9A1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#536897
Tritanopia (blue-blind)
#AB3C61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f9a;
/* rgb */ color: rgb(164, 47, 154);
/* oklch */ color: oklch(52.2% 0.193 331.7);
Tailwind
colors: {
  custom: {
    50: '#c273b8',
    500: '#a42f9a',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9a;
$custom-light: #c273b8;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9a",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 305.128,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52217,
    "c": 0.19288,
    "h": 331.7
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#A42F9A
secondary
#6FC076
accent
#DF5649
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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