#A42F99#A42F99

#A42F99 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.2% C 0.192 H 332.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#A42F99
RGBrgb(164, 47, 153)
HSLhsl(306, 55%, 41%)
HSVhsv(306, 71%, 64%)
CMYKcmyk(0%, 71.3%, 6.7%, 35.7%)
CIE-LABlab(41.58, 59.18, -32.77)
CIE-LCHlch(41.58, 67.65, 331.03°)
OKLaboklab(52.16% 0.1697 -0.09)
OKLCHoklch(52.16% 0.192 332.1)
XYZxyz(22.0762, 12.2272, 31.3282)
Luminance0.1222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F99 #2FA43A
analogous
#752FA4 #A42F99 #A42F5F
triadic
#A42F99 #99A42F #2F99A4
tetradic
#A42F99 #A4752F #2FA43A #2F5FA4
square
#A42F99 #A4752F #2FA43A #2F5FA4
split-complementary
#A42F99 #5FA42F #2FA475
monochromatic
#451440 #74216D #A42F99 #CA46BE #D876CE

Accessibility & contrast

On white

6.10
#A42F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42F99
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F99#FFFFFF#000000##FFFFFF
##A42F991.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589C
Deuteranopia (green-blind)
#546896
Tritanopia (blue-blind)
#AB3B60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f99;
/* rgb */ color: rgb(164, 47, 153);
/* oklch */ color: oklch(52.2% 0.192 332.1);
Tailwind
colors: {
  custom: {
    50: '#c273b7',
    500: '#a42f99',
    950: '#000000',
  },
}
SCSS
$custom: #a42f99;
$custom-light: #c273b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f99",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 305.641,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52162,
    "c": 0.19212,
    "h": 332.1
  },
  "luminance": 0.12225
}

Semantic roles & 50–950 ramp

primary
#A42F99
secondary
#6FC077
accent
#DF5749
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F99

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

Preview Lab → · Contrast checker → · Palette generator →

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