#A22F97#A22F97

#A22F97 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.189 H 332.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A22F97
RGBrgb(162, 47, 151)
HSLhsl(306, 55%, 41%)
HSVhsv(306, 71%, 64%)
CMYKcmyk(0%, 71%, 6.8%, 36.5%)
CIE-LABlab(41.14, 58.38, -32.27)
CIE-LCHlch(41.14, 66.71, 331.07°)
OKLaboklab(51.75% 0.1675 -0.0887)
OKLCHoklch(51.75% 0.189 332.1)
XYZxyz(21.5028, 11.9505, 30.4463)
Luminance0.1195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F97 #2FA23A
analogous
#732FA2 #A22F97 #A22F5D
triadic
#A22F97 #97A22F #2F97A2
tetradic
#A22F97 #A2732F #2FA23A #2F5DA2
square
#A22F97 #A2732F #2FA23A #2F5DA2
split-complementary
#A22F97 #5DA22F #2FA273
monochromatic
#43133F #73216B #A22F97 #C945BC #D775CD

Accessibility & contrast

On white

6.20
#A22F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A22F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F97
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F97#FFFFFF#000000##FFFFFF
##A22F971.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A93B5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a22f97;
/* rgb */ color: rgb(162, 47, 151);
/* oklch */ color: oklch(51.7% 0.189 332.1);
Tailwind
colors: {
  custom: {
    50: '#c172b6',
    500: '#a22f97',
    950: '#000000',
  },
}
SCSS
$custom: #a22f97;
$custom-light: #c172b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f97",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 305.739,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51749,
    "c": 0.18949,
    "h": 332.1
  },
  "luminance": 0.11949
}

Semantic roles & 50–950 ramp

primary
#A22F97
secondary
#6EBF76
accent
#DE5849
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A22F97

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

Preview Lab → · Contrast checker → · Palette generator →

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