#A42F9B#A42F9B

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

Color values

HEX#A42F9B
RGBrgb(164, 47, 155)
HSLhsl(305, 55%, 41%)
HSVhsv(305, 71%, 64%)
CMYKcmyk(0%, 71.3%, 5.5%, 35.7%)
CIE-LABlab(41.68, 59.50, -33.81)
CIE-LCHlch(41.68, 68.44, 330.39°)
OKLaboklab(52.27% 0.1698 -0.093)
OKLCHoklch(52.27% 0.194 331.3)
XYZxyz(22.2427, 12.2939, 32.2054)
Luminance0.1229 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9B #2FA438
analogous
#732FA4 #A42F9B #A42F61
triadic
#A42F9B #9BA42F #2F9BA4
tetradic
#A42F9B #A4732F #2FA438 #2F61A4
square
#A42F9B #A4732F #2FA438 #2F61A4
split-complementary
#A42F9B #61A42F #2FA473
monochromatic
#451441 #74216E #A42F9B #CA46C0 #D876D0

Accessibility & contrast

On white

6.07
#A42F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A42F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F9B
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9B#FFFFFF#000000##FFFFFF
##A42F9B1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#536898
Tritanopia (blue-blind)
#AB3C62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f9b;
/* rgb */ color: rgb(164, 47, 155);
/* oklch */ color: oklch(52.3% 0.194 331.3);
Tailwind
colors: {
  custom: {
    50: '#c273b9',
    500: '#a42f9b',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9b;
$custom-light: #c273b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9b",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 304.615,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52271,
    "c": 0.19365,
    "h": 331.3
  },
  "luminance": 0.12292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A42F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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