#A8228F#A8228F

#A8228F is a mid, highly saturated pink. Relative luminance 0.115; OKLCH L 51.2% C 0.201 H 337.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A8228F
RGBrgb(168, 34, 143)
HSLhsl(311, 66%, 40%)
HSVhsv(311, 80%, 66%)
CMYKcmyk(0%, 79.8%, 14.9%, 34.1%)
CIE-LABlab(40.34, 62.67, -28.60)
CIE-LCHlch(40.34, 68.89, 335.47°)
OKLaboklab(51.24% 0.185 -0.0779)
OKLCHoklch(51.24% 0.201 337.2)
XYZxyz(21.6789, 11.4541, 27.0504)
Luminance0.1145 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8228F #22A83B
analogous
#7E22A8 #A8228F #A8224C
triadic
#A8228F #8FA822 #228FA8
tetradic
#A8228F #A87E22 #22A83B #224CA8
square
#A8228F #A87E22 #22A83B #224CA8
split-complementary
#A8228F #4CA822 #22A87E
monochromatic
#420D38 #751864 #A8228F #D532B7 #E065C9

Accessibility & contrast

On white

6.38
#A8228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A8228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8228F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8228F#FFFFFF#000000##FFFFFF
##A8228F1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#57668C
Tritanopia (blue-blind)
#B12C57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8228f;
/* rgb */ color: rgb(168, 34, 143);
/* oklch */ color: oklch(51.2% 0.201 337.2);
Tailwind
colors: {
  custom: {
    50: '#c66eb0',
    500: '#a8228f',
    950: '#000000',
  },
}
SCSS
$custom: #a8228f;
$custom-light: #c66eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a8228f",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 311.194,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.20076,
    "h": 337.2
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

primary
#A8228F
secondary
#61C573
accent
#E95E3F
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8228F

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

Preview Lab → · Contrast checker → · Palette generator →

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