#A22898#A22898

#A22898 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.198 H 331.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A22898
RGBrgb(162, 40, 152)
HSLhsl(305, 60%, 40%)
HSVhsv(305, 75%, 64%)
CMYKcmyk(0%, 75.3%, 6.2%, 36.5%)
CIE-LABlab(40.36, 60.91, -34.11)
CIE-LCHlch(40.36, 69.81, 330.75°)
OKLaboklab(51.21% 0.1744 -0.0939)
OKLCHoklch(51.21% 0.198 331.7)
XYZxyz(21.3266, 11.4677, 30.7899)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22898 #28A232
analogous
#6F28A2 #A22898 #A2285B
triadic
#A22898 #98A228 #2898A2
tetradic
#A22898 #A26F28 #28A232 #285BA2
square
#A22898 #A26F28 #28A232 #285BA2
split-complementary
#A22898 #5BA228 #28A26F
monochromatic
#40103C #711C6A #A22898 #CE39C2 #DA6AD1

Accessibility & contrast

On white

6.38
#A22898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A22898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22898
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22898#FFFFFF#000000##FFFFFF
##A228981.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A9375E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a22898;
/* rgb */ color: rgb(162, 40, 152);
/* oklch */ color: oklch(51.2% 0.198 331.7);
Tailwind
colors: {
  custom: {
    50: '#c16fb7',
    500: '#a22898',
    950: '#000000',
  },
}
SCSS
$custom: #a22898;
$custom-light: #c16fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a22898",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 304.918,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51205,
    "c": 0.19807,
    "h": 331.7
  },
  "luminance": 0.11466
}

Semantic roles & 50–950 ramp

primary
#A22898
secondary
#65C16D
accent
#E45144
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22898

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

Preview Lab → · Contrast checker → · Palette generator →

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