#A42797#A42797

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

Color values

HEX#A42797
RGBrgb(164, 39, 151)
HSLhsl(306, 62%, 40%)
HSVhsv(306, 76%, 64%)
CMYKcmyk(0%, 76.2%, 7.9%, 35.7%)
CIE-LABlab(40.54, 61.52, -33.19)
CIE-LCHlch(40.54, 69.90, 331.65°)
OKLaboklab(51.39% 0.1773 -0.0912)
OKLCHoklch(51.39% 0.199 332.8)
XYZxyz(21.6214, 11.5798, 30.3685)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42797 #27A434
analogous
#7327A4 #A42797 #A42759
triadic
#A42797 #97A427 #2797A4
tetradic
#A42797 #A47327 #27A434 #2759A4
square
#A42797 #A47327 #27A434 #2759A4
split-complementary
#A42797 #59A427 #27A473
monochromatic
#410F3C #731B69 #A42797 #D038C0 #DC6AD0

Accessibility & contrast

On white

6.33
#A42797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A42797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42797
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42797#FFFFFF#000000##FFFFFF
##A427971.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20549A
Deuteranopia (green-blind)
#516694
Tritanopia (blue-blind)
#AB355D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42797;
/* rgb */ color: rgb(164, 39, 151);
/* oklch */ color: oklch(51.4% 0.199 332.8);
Tailwind
colors: {
  custom: {
    50: '#c36fb6',
    500: '#a42797',
    950: '#000000',
  },
}
SCSS
$custom: #a42797;
$custom-light: #c36fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a42797",
  "rgb": {
    "r": 164,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 306.24,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51385,
    "c": 0.1994,
    "h": 332.8
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#A42797
secondary
#65C26F
accent
#E55443
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42797

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

Preview Lab → · Contrast checker → · Palette generator →

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