#A1228F#A1228F

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

Color values

HEX#A1228F
RGBrgb(161, 34, 143)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 63%)
CMYKcmyk(0%, 78.9%, 11.2%, 36.9%)
CIE-LABlab(39.08, 61.10, -30.66)
CIE-LCHlch(39.08, 68.36, 333.36°)
OKLaboklab(50.1% 0.1782 -0.0839)
OKLCHoklch(50.1% 0.197 334.8)
XYZxyz(20.2282, 10.7061, 26.9824)
Luminance0.1070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1228F #22A134
analogous
#7322A1 #A1228F #A1224F
triadic
#A1228F #8FA122 #228FA1
tetradic
#A1228F #A17322 #22A134 #224FA1
square
#A1228F #A17322 #22A134 #224FA1
split-complementary
#A1228F #4FA122 #22A173
monochromatic
#3C0D35 #6E1762 #A1228F #D32DBB #DD60CC

Accessibility & contrast

On white

6.69
#A1228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A1228F
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1228F#FFFFFF#000000##FFFFFF
##A1228F1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a1228f;
/* rgb */ color: rgb(161, 34, 143);
/* oklch */ color: oklch(50.1% 0.197 334.8);
Tailwind
colors: {
  custom: {
    50: '#c16db0',
    500: '#a1228f',
    950: '#000000',
  },
}
SCSS
$custom: #a1228f;
$custom-light: #c16db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a1228f",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 308.504,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50103,
    "c": 0.197,
    "h": 334.8
  },
  "luminance": 0.10704
}

Semantic roles & 50–950 ramp

primary
#A1228F
secondary
#5DC26B
accent
#E85840
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1228F

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

Preview Lab → · Contrast checker → · Palette generator →

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