#A42E9F#A42E9F

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

Color values

HEX#A42E9F
RGBrgb(164, 46, 159)
HSLhsl(303, 56%, 41%)
HSVhsv(303, 72%, 64%)
CMYKcmyk(0%, 72%, 3%, 35.7%)
CIE-LABlab(41.77, 60.50, -36.07)
CIE-LCHlch(41.77, 70.44, 329.20°)
OKLaboklab(52.41% 0.171 -0.0996)
OKLCHoklch(52.41% 0.198 329.8)
XYZxyz(22.5447, 12.3514, 33.9908)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E9F #2EA433
analogous
#6E2EA4 #A42E9F #A42E64
triadic
#A42E9F #9FA42E #2E9FA4
tetradic
#A42E9F #A46E2E #2EA433 #2E64A4
square
#A42E9F #A46E2E #2EA433 #2E64A4
split-complementary
#A42E9F #64A42E #2EA46E
monochromatic
#441342 #742171 #A42E9F #CB45C5 #D874D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A42E9F#FFFFFF#000000##FFFFFF
##A42E9F1.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)
#2058A2
Deuteranopia (green-blind)
#50689C
Tritanopia (blue-blind)
#AA3E63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42e9f;
/* rgb */ color: rgb(164, 46, 159);
/* oklch */ color: oklch(52.4% 0.198 329.8);
Tailwind
colors: {
  custom: {
    50: '#c272bc',
    500: '#a42e9f',
    950: '#000000',
  },
}
SCSS
$custom: #a42e9f;
$custom-light: #c272bc;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e9f",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 302.542,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.19788,
    "h": 329.8
  },
  "luminance": 0.1235
}

Semantic roles & 50–950 ramp

primary
#A42E9F
secondary
#6EC071
accent
#DF4F48
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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