#A42F91#A42F91

#A42F91 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.7% C 0.186 H 335.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#A42F91
RGBrgb(164, 47, 145)
HSLhsl(310, 55%, 41%)
HSVhsv(310, 71%, 64%)
CMYKcmyk(0%, 71.3%, 11.6%, 35.7%)
CIE-LABlab(41.17, 57.93, -28.56)
CIE-LCHlch(41.17, 64.59, 333.76°)
OKLaboklab(51.74% 0.1691 -0.0779)
OKLCHoklch(51.74% 0.186 335.3)
XYZxyz(21.4374, 11.9717, 27.9643)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F91 #2FA442
analogous
#7D2FA4 #A42F91 #A42F57
triadic
#A42F91 #91A42F #2F91A4
tetradic
#A42F91 #A47D2F #2FA442 #2F57A4
square
#A42F91 #A47D2F #2FA442 #2F57A4
split-complementary
#A42F91 #57A42F #2FA47D
monochromatic
#45143D #742167 #A42F91 #CA46B5 #D876C8

Accessibility & contrast

On white

6.19
#A42F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A42F91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F91
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F91#FFFFFF#000000##FFFFFF
##A42F911.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5694
Deuteranopia (green-blind)
#57678E
Tritanopia (blue-blind)
#AC385C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42f91;
/* rgb */ color: rgb(164, 47, 145);
/* oklch */ color: oklch(51.7% 0.186 335.3);
Tailwind
colors: {
  custom: {
    50: '#c272b1',
    500: '#a42f91',
    950: '#000000',
  },
}
SCSS
$custom: #a42f91;
$custom-light: #c272b1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f91",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 309.744,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.18616,
    "h": 335.3
  },
  "luminance": 0.1197
}

Semantic roles & 50–950 ramp

primary
#A42F91
secondary
#6FC07C
accent
#DF6149
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F91

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

Preview Lab → · Contrast checker → · Palette generator →

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