#A42198#A42198

#A42198 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.206 H 332.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A42198
RGBrgb(164, 33, 152)
HSLhsl(305, 66%, 39%)
HSVhsv(305, 80%, 64%)
CMYKcmyk(0%, 79.9%, 7.3%, 35.7%)
CIE-LABlab(40.00, 63.39, -34.65)
CIE-LCHlch(40.00, 72.24, 331.33°)
OKLaboklab(51.01% 0.1824 -0.0954)
OKLCHoklch(51.01% 0.206 332.4)
XYZxyz(21.5213, 11.2491, 30.7375)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42198 #21A42D
analogous
#6E21A4 #A42198 #A42156
triadic
#A42198 #98A421 #2198A4
tetradic
#A42198 #A46E21 #21A42D #2156A4
square
#A42198 #A46E21 #21A42D #2156A4
split-complementary
#A42198 #56A421 #21A46E
monochromatic
#3E0C3A #711769 #A42198 #D52DC5 #DF60D3

Accessibility & contrast

On white

6.46
#A42198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A42198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42198
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42198#FFFFFF#000000##FFFFFF
##A421981.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16539B
Deuteranopia (green-blind)
#4F6595
Tritanopia (blue-blind)
#AB325C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a42198;
/* rgb */ color: rgb(164, 33, 152);
/* oklch */ color: oklch(51.0% 0.206 332.4);
Tailwind
colors: {
  custom: {
    50: '#c36db7',
    500: '#a42198',
    950: '#000000',
  },
}
SCSS
$custom: #a42198;
$custom-light: #c36db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42198",
  "rgb": {
    "r": 164,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 305.496,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51013,
    "c": 0.20581,
    "h": 332.4
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#A42198
secondary
#5DC466
accent
#E94E3E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42198

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

Preview Lab → · Contrast checker → · Palette generator →

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