#A42F9D#A42F9D

#A42F9D is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.4% C 0.195 H 330.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#A42F9D
RGBrgb(164, 47, 157)
HSLhsl(304, 55%, 41%)
HSVhsv(304, 71%, 64%)
CMYKcmyk(0%, 71.3%, 4.3%, 35.7%)
CIE-LABlab(41.79, 59.83, -34.85)
CIE-LCHlch(41.79, 69.23, 329.78°)
OKLaboklab(52.38% 0.1699 -0.096)
OKLCHoklch(52.38% 0.195 330.5)
XYZxyz(22.4121, 12.3616, 33.0974)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9D #2FA436
analogous
#712FA4 #A42F9D #A42F63
triadic
#A42F9D #9DA42F #2F9DA4
tetradic
#A42F9D #A4712F #2FA436 #2F63A4
square
#A42F9D #A4712F #2FA436 #2F63A4
split-complementary
#A42F9D #63A42F #2FA471
monochromatic
#451442 #74216F #A42F9D #CA46C2 #D876D2

Accessibility & contrast

On white

6.05
#A42F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42F9D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9D#FFFFFF#000000##FFFFFF
##A42F9D1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#52689A
Tritanopia (blue-blind)
#AA3D63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42f9d;
/* rgb */ color: rgb(164, 47, 157);
/* oklch */ color: oklch(52.4% 0.195 330.5);
Tailwind
colors: {
  custom: {
    50: '#c273ba',
    500: '#a42f9d',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9d;
$custom-light: #c273ba;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9d",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 303.59,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52382,
    "c": 0.19519,
    "h": 330.5
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#A42F9D
secondary
#6FC074
accent
#DF5249
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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