#A42E97#A42E97

#A42E97 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.192 H 332.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A42E97
RGBrgb(164, 46, 151)
HSLhsl(307, 56%, 41%)
HSVhsv(307, 72%, 64%)
CMYKcmyk(0%, 72%, 7.9%, 35.7%)
CIE-LABlab(41.35, 59.22, -31.92)
CIE-LCHlch(41.35, 67.27, 331.67°)
OKLaboklab(51.97% 0.1706 -0.0876)
OKLCHoklch(51.97% 0.192 332.8)
XYZxyz(21.8728, 12.0827, 30.4523)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E97 #2EA43B
analogous
#762EA4 #A42E97 #A42E5C
triadic
#A42E97 #97A42E #2E97A4
tetradic
#A42E97 #A4762E #2EA43B #2E5CA4
square
#A42E97 #A4762E #2EA43B #2E5CA4
split-complementary
#A42E97 #5CA42E #2EA476
monochromatic
#44133F #74216B #A42E97 #CB45BC #D874CD

Accessibility & contrast

On white

6.15
#A42E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#A42E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E97
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E97#FFFFFF#000000##FFFFFF
##A42E971.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#546794
Tritanopia (blue-blind)
#AB3A5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42e97;
/* rgb */ color: rgb(164, 46, 151);
/* oklch */ color: oklch(52.0% 0.192 332.8);
Tailwind
colors: {
  custom: {
    50: '#c272b6',
    500: '#a42e97',
    950: '#000000',
  },
}
SCSS
$custom: #a42e97;
$custom-light: #c272b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e97",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 306.61,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51965,
    "c": 0.19178,
    "h": 332.8
  },
  "luminance": 0.12081
}

Semantic roles & 50–950 ramp

primary
#A42E97
secondary
#6EC077
accent
#DF5948
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A42E97

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

Preview Lab → · Contrast checker → · Palette generator →

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