#A42F97#A42F97

#A42F97 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.1% C 0.191 H 332.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A42F97
RGBrgb(164, 47, 151)
HSLhsl(307, 55%, 41%)
HSVhsv(307, 71%, 64%)
CMYKcmyk(0%, 71.3%, 7.9%, 35.7%)
CIE-LABlab(41.47, 58.86, -31.72)
CIE-LCHlch(41.47, 66.87, 331.68°)
OKLaboklab(52.05% 0.1696 -0.087)
OKLCHoklch(52.05% 0.191 332.8)
XYZxyz(21.9124, 12.1617, 30.4655)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F97 #2FA43C
analogous
#772FA4 #A42F97 #A42F5D
triadic
#A42F97 #97A42F #2F97A4
tetradic
#A42F97 #A4772F #2FA43C #2F5DA4
square
#A42F97 #A4772F #2FA43C #2F5DA4
split-complementary
#A42F97 #5DA42F #2FA477
monochromatic
#45143F #74216B #A42F97 #CA46BB #D876CD

Accessibility & contrast

On white

6.12
#A42F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A42F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F97
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F97#FFFFFF#000000##FFFFFF
##A42F971.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#556894
Tritanopia (blue-blind)
#AB3B5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42f97;
/* rgb */ color: rgb(164, 47, 151);
/* oklch */ color: oklch(52.1% 0.191 332.8);
Tailwind
colors: {
  custom: {
    50: '#c273b6',
    500: '#a42f97',
    950: '#000000',
  },
}
SCSS
$custom: #a42f97;
$custom-light: #c273b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f97",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 306.667,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.1906,
    "h": 332.8
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#A42F97
secondary
#6FC078
accent
#DF5A49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42F97

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

Preview Lab → · Contrast checker → · Palette generator →

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