#A2218E#A2218E

#A2218E is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.1% C 0.198 H 335.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#A2218E
RGBrgb(162, 33, 142)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 80%, 64%)
CMYKcmyk(0%, 79.6%, 12.3%, 36.5%)
CIE-LABlab(39.11, 61.46, -29.98)
CIE-LCHlch(39.11, 68.38, 333.99°)
OKLaboklab(50.14% 0.18 -0.082)
OKLCHoklch(50.14% 0.198 335.5)
XYZxyz(20.3269, 10.7240, 26.5853)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2218E #21A235
analogous
#7521A2 #A2218E #A2214E
triadic
#A2218E #8EA221 #218EA2
tetradic
#A2218E #A27521 #21A235 #214EA2
square
#A2218E #A27521 #21A235 #214EA2
split-complementary
#A2218E #4EA221 #21A275
monochromatic
#3C0C35 #6F1761 #A2218E #D42CBA #DE5FCB

Accessibility & contrast

On white

6.68
#A2218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A2218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2218E
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2218E#FFFFFF#000000##FFFFFF
##A2218E1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225091
Deuteranopia (green-blind)
#52638B
Tritanopia (blue-blind)
#AA2D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2218e;
/* rgb */ color: rgb(162, 33, 142);
/* oklch */ color: oklch(50.1% 0.198 335.5);
Tailwind
colors: {
  custom: {
    50: '#c16caf',
    500: '#a2218e',
    950: '#000000',
  },
}
SCSS
$custom: #a2218e;
$custom-light: #c16caf;
$custom-dark: #000000;
JSON
{
  "hex": "#a2218e",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 309.302,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.19776,
    "h": 335.5
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#A2218E
secondary
#5CC36C
accent
#E9593F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2218E

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

Preview Lab → · Contrast checker → · Palette generator →

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