#A42F9E#A42F9E

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

Color values

HEX#A42F9E
RGBrgb(164, 47, 158)
HSLhsl(303, 55%, 41%)
HSVhsv(303, 71%, 64%)
CMYKcmyk(0%, 71.3%, 3.7%, 35.7%)
CIE-LABlab(41.84, 59.99, -35.36)
CIE-LCHlch(41.84, 69.64, 329.48°)
OKLaboklab(52.44% 0.17 -0.0975)
OKLCHoklch(52.44% 0.196 330.2)
XYZxyz(22.4978, 12.3959, 33.5488)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F9E #2FA435
analogous
#702FA4 #A42F9E #A42F64
triadic
#A42F9E #9EA42F #2F9EA4
tetradic
#A42F9E #A4702F #2FA435 #2F64A4
square
#A42F9E #A4702F #2FA435 #2F64A4
split-complementary
#A42F9E #64A42F #2FA470
monochromatic
#451442 #742170 #A42F9E #CA46C3 #D876D3

Accessibility & contrast

On white

6.04
#A42F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#A42F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F9E
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F9E#FFFFFF#000000##FFFFFF
##A42F9E1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2359A1
Deuteranopia (green-blind)
#51689B
Tritanopia (blue-blind)
#AA3E63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42f9e;
/* rgb */ color: rgb(164, 47, 158);
/* oklch */ color: oklch(52.4% 0.196 330.2);
Tailwind
colors: {
  custom: {
    50: '#c273bb',
    500: '#a42f9e',
    950: '#000000',
  },
}
SCSS
$custom: #a42f9e;
$custom-light: #c273bb;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f9e",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 303.077,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52437,
    "c": 0.19596,
    "h": 330.2
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#A42F9E
secondary
#6FC073
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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