#A42E9D#A42E9D

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

Color values

HEX#A42E9D
RGBrgb(164, 46, 157)
HSLhsl(304, 56%, 41%)
HSVhsv(304, 72%, 64%)
CMYKcmyk(0%, 72%, 4.3%, 35.7%)
CIE-LABlab(41.66, 60.18, -35.04)
CIE-LCHlch(41.66, 69.63, 329.79°)
OKLaboklab(52.29% 0.1709 -0.0966)
OKLCHoklch(52.29% 0.196 330.5)
XYZxyz(22.3726, 12.2826, 33.0842)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E9D #2EA435
analogous
#702EA4 #A42E9D #A42E62
triadic
#A42E9D #9DA42E #2E9DA4
tetradic
#A42E9D #A4702E #2EA435 #2E62A4
square
#A42E9D #A4702E #2EA435 #2E62A4
split-complementary
#A42E9D #62A42E #2EA470
monochromatic
#441341 #74216F #A42E9D #CB45C3 #D874D2

Accessibility & contrast

On white

6.08
#A42E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42E9D
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E9D#FFFFFF#000000##FFFFFF
##A42E9D1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#51689A
Tritanopia (blue-blind)
#AA3D62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42e9d;
/* rgb */ color: rgb(164, 46, 157);
/* oklch */ color: oklch(52.3% 0.196 330.5);
Tailwind
colors: {
  custom: {
    50: '#c272ba',
    500: '#a42e9d',
    950: '#000000',
  },
}
SCSS
$custom: #a42e9d;
$custom-light: #c272ba;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e9d",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 303.559,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52293,
    "c": 0.19633,
    "h": 330.5
  },
  "luminance": 0.12281
}

Semantic roles & 50–950 ramp

primary
#A42E9D
secondary
#6EC073
accent
#DF5148
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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