#A42F96#A42F96

#A42F96 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.190 H 333.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#A42F96
RGBrgb(164, 47, 150)
HSLhsl(307, 55%, 41%)
HSVhsv(307, 71%, 64%)
CMYKcmyk(0%, 71.3%, 8.5%, 35.7%)
CIE-LABlab(41.42, 58.70, -31.20)
CIE-LCHlch(41.42, 66.48, 332.01°)
OKLaboklab(52% 0.1695 -0.0855)
OKLCHoklch(52% 0.19 333.2)
XYZxyz(21.8315, 12.1294, 30.0396)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F96 #2FA43D
analogous
#782FA4 #A42F96 #A42F5C
triadic
#A42F96 #96A42F #2F96A4
tetradic
#A42F96 #A4782F #2FA43D #2F5CA4
square
#A42F96 #A4782F #2FA43D #2F5CA4
split-complementary
#A42F96 #5CA42F #2FA478
monochromatic
#45143F #74216A #A42F96 #CA46BA #D876CC

Accessibility & contrast

On white

6.13
#A42F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A42F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F96
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F96#FFFFFF#000000##FFFFFF
##A42F961.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#556893
Tritanopia (blue-blind)
#AB3A5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f96;
/* rgb */ color: rgb(164, 47, 150);
/* oklch */ color: oklch(52.0% 0.190 333.2);
Tailwind
colors: {
  custom: {
    50: '#c273b5',
    500: '#a42f96',
    950: '#000000',
  },
}
SCSS
$custom: #a42f96;
$custom-light: #c273b5;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f96",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 307.179,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52001,
    "c": 0.18986,
    "h": 333.2
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#A42F96
secondary
#6FC079
accent
#DF5B49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F96

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

Preview Lab → · Contrast checker → · Palette generator →

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