#A42796#A42796

#A42796 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.3% C 0.199 H 333.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#A42796
RGBrgb(164, 39, 150)
HSLhsl(307, 62%, 40%)
HSVhsv(307, 76%, 64%)
CMYKcmyk(0%, 76.2%, 8.5%, 35.7%)
CIE-LABlab(40.49, 61.36, -32.67)
CIE-LCHlch(40.49, 69.52, 331.97°)
OKLaboklab(51.33% 0.1773 -0.0897)
OKLCHoklch(51.33% 0.199 333.2)
XYZxyz(21.5405, 11.5474, 29.9426)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42796 #27A435
analogous
#7427A4 #A42796 #A42758
triadic
#A42796 #96A427 #2796A4
tetradic
#A42796 #A47427 #27A435 #2758A4
square
#A42796 #A47427 #27A435 #2758A4
split-complementary
#A42796 #58A427 #27A474
monochromatic
#410F3C #731B69 #A42796 #D038BF #DC6ACF

Accessibility & contrast

On white

6.35
#A42796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A42796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42796
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42796#FFFFFF#000000##FFFFFF
##A427961.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215499
Deuteranopia (green-blind)
#526693
Tritanopia (blue-blind)
#AC345D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42796;
/* rgb */ color: rgb(164, 39, 150);
/* oklch */ color: oklch(51.3% 0.199 333.2);
Tailwind
colors: {
  custom: {
    50: '#c36fb5',
    500: '#a42796',
    950: '#000000',
  },
}
SCSS
$custom: #a42796;
$custom-light: #c36fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#a42796",
  "rgb": {
    "r": 164,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 306.72,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.19867,
    "h": 333.2
  },
  "luminance": 0.11546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A42796

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

Preview Lab → · Contrast checker → · Palette generator →

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