#A42E9C#A42E9C

#A42E9C is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.2% C 0.196 H 330.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A42E9C
RGBrgb(164, 46, 156)
HSLhsl(304, 56%, 41%)
HSVhsv(304, 72%, 64%)
CMYKcmyk(0%, 72%, 4.9%, 35.7%)
CIE-LABlab(41.61, 60.01, -34.52)
CIE-LCHlch(41.61, 69.24, 330.09°)
OKLaboklab(52.24% 0.1709 -0.0951)
OKLCHoklch(52.24% 0.196 330.9)
XYZxyz(22.2875, 12.2485, 32.6364)
Luminance0.1225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E9C #2EA436
analogous
#712EA4 #A42E9C #A42E61
triadic
#A42E9C #9CA42E #2E9CA4
tetradic
#A42E9C #A4712E #2EA436 #2E61A4
square
#A42E9C #A4712E #2EA436 #2E61A4
split-complementary
#A42E9C #61A42E #2EA471
monochromatic
#441341 #74216F #A42E9C #CB45C2 #D874D1

Accessibility & contrast

On white

6.09
#A42E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A42E9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E9C
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E9C#FFFFFF#000000##FFFFFF
##A42E9C1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a42e9c;
/* rgb */ color: rgb(164, 46, 156);
/* oklch */ color: oklch(52.2% 0.196 330.9);
Tailwind
colors: {
  custom: {
    50: '#c272b9',
    500: '#a42e9c',
    950: '#000000',
  },
}
SCSS
$custom: #a42e9c;
$custom-light: #c272b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e9c",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 304.068,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52237,
    "c": 0.19556,
    "h": 330.9
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#A42E9C
secondary
#6EC074
accent
#DF5348
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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