#A42FA1#A42FA1

#A42FA1 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.6% C 0.198 H 329.0°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#A42FA1
RGBrgb(164, 47, 161)
HSLhsl(302, 55%, 41%)
HSVhsv(302, 71%, 64%)
CMYKcmyk(0%, 71.3%, 1.8%, 35.7%)
CIE-LABlab(42.00, 60.48, -36.91)
CIE-LCHlch(42.00, 70.85, 328.61°)
OKLaboklab(52.61% 0.1701 -0.102)
OKLCHoklch(52.61% 0.198 329)
XYZxyz(22.7592, 12.5004, 34.9254)
Luminance0.1250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FA1 #2FA432
analogous
#6D2FA4 #A42FA1 #A42F67
triadic
#A42FA1 #A1A42F #2FA1A4
tetradic
#A42FA1 #A46D2F #2FA432 #2F67A4
square
#A42FA1 #A46D2F #2FA432 #2F67A4
split-complementary
#A42FA1 #67A42F #2FA46D
monochromatic
#451444 #742172 #A42FA1 #CA46C7 #D876D5

Accessibility & contrast

On white

6.00
#A42FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#A42FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FA1
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FA1#FFFFFF#000000##FFFFFF
##A42FA11.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#50699E
Tritanopia (blue-blind)
#AA3F65
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42fa1;
/* rgb */ color: rgb(164, 47, 161);
/* oklch */ color: oklch(52.6% 0.198 329.0);
Tailwind
colors: {
  custom: {
    50: '#c273bd',
    500: '#a42fa1',
    950: '#000000',
  },
}
SCSS
$custom: #a42fa1;
$custom-light: #c273bd;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fa1",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 301.538,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52606,
    "c": 0.1983,
    "h": 329
  },
  "luminance": 0.12499
}

Semantic roles & 50–950 ramp

primary
#A42FA1
secondary
#6FC071
accent
#DF4D49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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