#A42F9F#A42F9F

#A42F9F is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.5% C 0.197 H 329.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A42F9F
RGBrgb(164, 47, 159)
HSLhsl(303, 55%, 41%)
HSVhsv(303, 71%, 64%)
CMYKcmyk(0%, 71.3%, 3%, 35.7%)
CIE-LABlab(41.89, 60.15, -35.88)
CIE-LCHlch(41.89, 70.04, 329.19°)
OKLaboklab(52.49% 0.17 -0.099)
OKLCHoklch(52.49% 0.197 329.8)
XYZxyz(22.5842, 12.4305, 34.0040)
Luminance0.1243 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9F #2FA434
analogous
#6F2FA4 #A42F9F #A42F65
triadic
#A42F9F #9FA42F #2F9FA4
tetradic
#A42F9F #A46F2F #2FA434 #2F65A4
square
#A42F9F #A46F2F #2FA434 #2F65A4
split-complementary
#A42F9F #65A42F #2FA46F
monochromatic
#451443 #742171 #A42F9F #CA46C4 #D876D3

Accessibility & contrast

On white

6.02
#A42F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#A42F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F9F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9F#FFFFFF#000000##FFFFFF
##A42F9F1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#51689C
Tritanopia (blue-blind)
#AA3E64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42f9f;
/* rgb */ color: rgb(164, 47, 159);
/* oklch */ color: oklch(52.5% 0.197 329.8);
Tailwind
colors: {
  custom: {
    50: '#c273bc',
    500: '#a42f9f',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9f;
$custom-light: #c273bc;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9f",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 302.564,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52493,
    "c": 0.19674,
    "h": 329.8
  },
  "luminance": 0.12429
}

Semantic roles & 50–950 ramp

primary
#A42F9F
secondary
#6FC073
accent
#DF4F49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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