#A22C98#A22C98

#A22C98 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.194 H 331.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A22C98
RGBrgb(162, 44, 152)
HSLhsl(305, 57%, 40%)
HSVhsv(305, 73%, 64%)
CMYKcmyk(0%, 72.8%, 6.2%, 36.5%)
CIE-LABlab(40.82, 59.60, -33.38)
CIE-LCHlch(40.82, 68.31, 330.75°)
OKLaboklab(51.54% 0.1706 -0.0918)
OKLCHoklch(51.54% 0.194 331.7)
XYZxyz(21.4685, 11.7515, 30.8372)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22C98 #2CA236
analogous
#712CA2 #A22C98 #A22C5D
triadic
#A22C98 #98A22C #2C98A2
tetradic
#A22C98 #A2712C #2CA236 #2C5DA2
square
#A22C98 #A2712C #2CA236 #2C5DA2
split-complementary
#A22C98 #5DA22C #2CA271
monochromatic
#42123E #721F6B #A22C98 #CB40BF #D870CF

Accessibility & contrast

On white

6.27
#A22C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A22C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22C98
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22C98#FFFFFF#000000##FFFFFF
##A22C981.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23569B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A9395F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a22c98;
/* rgb */ color: rgb(162, 44, 152);
/* oklch */ color: oklch(51.5% 0.194 331.7);
Tailwind
colors: {
  custom: {
    50: '#c171b7',
    500: '#a22c98',
    950: '#000000',
  },
}
SCSS
$custom: #a22c98;
$custom-light: #c171b7;
$custom-dark: #000000;
JSON
{
  "hex": "#a22c98",
  "rgb": {
    "r": 162,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 305.085,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51536,
    "c": 0.19372,
    "h": 331.7
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#A22C98
secondary
#6ABF72
accent
#E15447
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22C98

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

Preview Lab → · Contrast checker → · Palette generator →

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