#A42798#A42798

#A42798 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.4% C 0.200 H 332.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#A42798
RGBrgb(164, 39, 152)
HSLhsl(306, 62%, 40%)
HSVhsv(306, 76%, 64%)
CMYKcmyk(0%, 76.2%, 7.3%, 35.7%)
CIE-LABlab(40.59, 61.67, -33.71)
CIE-LCHlch(40.59, 70.28, 331.34°)
OKLaboklab(51.44% 0.1774 -0.0927)
OKLCHoklch(51.44% 0.2 332.4)
XYZxyz(21.7029, 11.6124, 30.7980)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42798 #27A433
analogous
#7227A4 #A42798 #A4275A
triadic
#A42798 #98A427 #2798A4
tetradic
#A42798 #A47227 #27A433 #275AA4
square
#A42798 #A47227 #27A433 #275AA4
split-complementary
#A42798 #5AA427 #27A472
monochromatic
#410F3C #731B6A #A42798 #D038C1 #DC6AD1

Accessibility & contrast

On white

6.32
#A42798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42798
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42798#FFFFFF#000000##FFFFFF
##A427981.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#AB355E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42798;
/* rgb */ color: rgb(164, 39, 152);
/* oklch */ color: oklch(51.4% 0.200 332.4);
Tailwind
colors: {
  custom: {
    50: '#c36fb7',
    500: '#a42798',
    950: '#000000',
  },
}
SCSS
$custom: #a42798;
$custom-light: #c36fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42798",
  "rgb": {
    "r": 164,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 305.76,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5144,
    "c": 0.20013,
    "h": 332.4
  },
  "luminance": 0.11611
}

Semantic roles & 50–950 ramp

primary
#A42798
secondary
#65C26E
accent
#E55343
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42798

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

Preview Lab → · Contrast checker → · Palette generator →

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