#A22D98#A22D98

#A22D98 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.193 H 331.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A22D98
RGBrgb(162, 45, 152)
HSLhsl(305, 57%, 41%)
HSVhsv(305, 72%, 64%)
CMYKcmyk(0%, 72.2%, 6.2%, 36.5%)
CIE-LABlab(40.94, 59.25, -33.19)
CIE-LCHlch(40.94, 67.91, 330.75°)
OKLaboklab(51.62% 0.1696 -0.0913)
OKLCHoklch(51.62% 0.193 331.7)
XYZxyz(21.5062, 11.8269, 30.8498)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22D98 #2DA237
analogous
#712DA2 #A22D98 #A22D5D
triadic
#A22D98 #98A22D #2D98A2
tetradic
#A22D98 #A2712D #2DA237 #2D5DA2
square
#A22D98 #A2712D #2DA237 #2D5DA2
split-complementary
#A22D98 #5DA22D #2DA271
monochromatic
#42123E #72206B #A22D98 #CA42BF #D872CF

Accessibility & contrast

On white

6.24
#A22D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A22D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22D98
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22D98#FFFFFF#000000##FFFFFF
##A22D981.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569B
Deuteranopia (green-blind)
#526695
Tritanopia (blue-blind)
#A93A5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a22d98;
/* rgb */ color: rgb(162, 45, 152);
/* oklch */ color: oklch(51.6% 0.193 331.7);
Tailwind
colors: {
  custom: {
    50: '#c171b7',
    500: '#a22d98',
    950: '#000000',
  },
}
SCSS
$custom: #a22d98;
$custom-light: #c171b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a22d98",
  "rgb": {
    "r": 162,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 305.128,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51623,
    "c": 0.19258,
    "h": 331.7
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#A22D98
secondary
#6CBF73
accent
#E05548
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A22D98

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

Preview Lab → · Contrast checker → · Palette generator →

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