#A42F9C#A42F9C

#A42F9C is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.3% C 0.194 H 330.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#A42F9C
RGBrgb(164, 47, 156)
HSLhsl(304, 55%, 41%)
HSVhsv(304, 71%, 64%)
CMYKcmyk(0%, 71.3%, 4.9%, 35.7%)
CIE-LABlab(41.73, 59.66, -34.33)
CIE-LCHlch(41.73, 68.83, 330.09°)
OKLaboklab(52.33% 0.1699 -0.0945)
OKLCHoklch(52.33% 0.194 330.9)
XYZxyz(22.3271, 12.3276, 32.6496)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9C #2FA437
analogous
#722FA4 #A42F9C #A42F62
triadic
#A42F9C #9CA42F #2F9CA4
tetradic
#A42F9C #A4722F #2FA437 #2F62A4
square
#A42F9C #A4722F #2FA437 #2F62A4
split-complementary
#A42F9C #62A42F #2FA472
monochromatic
#451442 #74216F #A42F9C #CA46C1 #D876D1

Accessibility & contrast

On white

6.06
#A42F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A42F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F9C
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9C#FFFFFF#000000##FFFFFF
##A42F9C1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#526899
Tritanopia (blue-blind)
#AA3D62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f9c;
/* rgb */ color: rgb(164, 47, 156);
/* oklch */ color: oklch(52.3% 0.194 330.9);
Tailwind
colors: {
  custom: {
    50: '#c273b9',
    500: '#a42f9c',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9c;
$custom-light: #c273b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9c",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 304.103,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52326,
    "c": 0.19441,
    "h": 330.9
  },
  "luminance": 0.12326
}

Semantic roles & 50–950 ramp

primary
#A42F9C
secondary
#6FC075
accent
#DF5349
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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