#A2218F#A2218F

#A2218F is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.198 H 335.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#A2218F
RGBrgb(162, 33, 143)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 80%, 64%)
CMYKcmyk(0%, 79.6%, 11.7%, 36.5%)
CIE-LABlab(39.16, 61.60, -30.51)
CIE-LCHlch(39.16, 68.75, 333.65°)
OKLaboklab(50.2% 0.18 -0.0835)
OKLCHoklch(50.2% 0.198 335.1)
XYZxyz(20.4024, 10.7541, 26.9825)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2218F #21A234
analogous
#7421A2 #A2218F #A2214E
triadic
#A2218F #8FA221 #218FA2
tetradic
#A2218F #A27421 #21A234 #214EA2
square
#A2218F #A27421 #21A234 #214EA2
split-complementary
#A2218F #4EA221 #21A274
monochromatic
#3C0C35 #6F1762 #A2218F #D42CBB #DE5FCC

Accessibility & contrast

On white

6.67
#A2218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A2218F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2218F
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2218F#FFFFFF#000000##FFFFFF
##A2218F1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#51638C
Tritanopia (blue-blind)
#AA2D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2218f;
/* rgb */ color: rgb(162, 33, 143);
/* oklch */ color: oklch(50.2% 0.198 335.1);
Tailwind
colors: {
  custom: {
    50: '#c16cb0',
    500: '#a2218f',
    950: '#000000',
  },
}
SCSS
$custom: #a2218f;
$custom-light: #c16cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a2218f",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 308.837,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50195,
    "c": 0.19846,
    "h": 335.1
  },
  "luminance": 0.10752
}

Semantic roles & 50–950 ramp

primary
#A2218F
secondary
#5CC36B
accent
#E9583F
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2218F

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

Preview Lab → · Contrast checker → · Palette generator →

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