#A42897#A42897

#A42897 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.5% C 0.198 H 332.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A42897
RGBrgb(164, 40, 151)
HSLhsl(306, 61%, 40%)
HSVhsv(306, 76%, 64%)
CMYKcmyk(0%, 75.6%, 7.9%, 35.7%)
CIE-LABlab(40.65, 61.21, -33.02)
CIE-LCHlch(40.65, 69.54, 331.65°)
OKLaboklab(51.46% 0.1764 -0.0907)
OKLCHoklch(51.46% 0.198 332.8)
XYZxyz(21.6547, 11.6463, 30.3796)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42897 #28A435
analogous
#7328A4 #A42897 #A42859
triadic
#A42897 #97A428 #2897A4
tetradic
#A42897 #A47328 #28A435 #2859A4
square
#A42897 #A47328 #28A435 #2859A4
split-complementary
#A42897 #59A428 #28A473
monochromatic
#42103C #731C6A #A42897 #CF3ABF #DB6BCF

Accessibility & contrast

On white

6.31
#A42897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A42897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42897
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42897#FFFFFF#000000##FFFFFF
##A428971.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559A
Deuteranopia (green-blind)
#526694
Tritanopia (blue-blind)
#AB365D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42897;
/* rgb */ color: rgb(164, 40, 151);
/* oklch */ color: oklch(51.5% 0.198 332.8);
Tailwind
colors: {
  custom: {
    50: '#c370b6',
    500: '#a42897',
    950: '#000000',
  },
}
SCSS
$custom: #a42897;
$custom-light: #c370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42897",
  "rgb": {
    "r": 164,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 306.29,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.51462,
    "c": 0.19837,
    "h": 332.8
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#A42897
secondary
#66C170
accent
#E45544
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42897

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

Preview Lab → · Contrast checker → · Palette generator →

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