#A42E9B#A42E9B

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

Color values

HEX#A42E9B
RGBrgb(164, 46, 155)
HSLhsl(305, 56%, 41%)
HSVhsv(305, 72%, 64%)
CMYKcmyk(0%, 72%, 5.5%, 35.7%)
CIE-LABlab(41.56, 59.85, -34.00)
CIE-LCHlch(41.56, 68.84, 330.40°)
OKLaboklab(52.18% 0.1709 -0.0936)
OKLCHoklch(52.18% 0.195 331.3)
XYZxyz(22.2032, 12.2148, 32.1923)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E9B #2EA437
analogous
#722EA4 #A42E9B #A42E60
triadic
#A42E9B #9BA42E #2E9BA4
tetradic
#A42E9B #A4722E #2EA437 #2E60A4
square
#A42E9B #A4722E #2EA437 #2E60A4
split-complementary
#A42E9B #60A42E #2EA472
monochromatic
#441341 #74216E #A42E9B #CB45C0 #D874D0

Accessibility & contrast

On white

6.10
#A42E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A42E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E9B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E9B#FFFFFF#000000##FFFFFF
##A42E9B1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589E
Deuteranopia (green-blind)
#526898
Tritanopia (blue-blind)
#AB3C61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42e9b;
/* rgb */ color: rgb(164, 46, 155);
/* oklch */ color: oklch(52.2% 0.195 331.3);
Tailwind
colors: {
  custom: {
    50: '#c272b9',
    500: '#a42e9b',
    950: '#000000',
  },
}
SCSS
$custom: #a42e9b;
$custom-light: #c272b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e9b",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 304.576,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52182,
    "c": 0.1948,
    "h": 331.3
  },
  "luminance": 0.12213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A42E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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