#A8228D#A8228D

#A8228D is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.1% C 0.199 H 338.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A8228D
RGBrgb(168, 34, 141)
HSLhsl(312, 66%, 40%)
HSVhsv(312, 80%, 66%)
CMYKcmyk(0%, 79.8%, 16.1%, 34.1%)
CIE-LABlab(40.24, 62.39, -27.53)
CIE-LCHlch(40.24, 68.19, 336.19°)
OKLaboklab(51.13% 0.1849 -0.0748)
OKLCHoklch(51.13% 0.199 338)
XYZxyz(21.5287, 11.3941, 26.2596)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8228D #22A83D
analogous
#8022A8 #A8228D #A8224A
triadic
#A8228D #8DA822 #228DA8
tetradic
#A8228D #A88022 #22A83D #224AA8
square
#A8228D #A88022 #22A83D #224AA8
split-complementary
#A8228D #4AA822 #22A880
monochromatic
#420D38 #751862 #A8228D #D532B4 #E065C7

Accessibility & contrast

On white

6.41
#A8228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A8228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8228D
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8228D#FFFFFF#000000##FFFFFF
##A8228D1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295290
Deuteranopia (green-blind)
#58668A
Tritanopia (blue-blind)
#B22A56
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8228d;
/* rgb */ color: rgb(168, 34, 141);
/* oklch */ color: oklch(51.1% 0.199 338.0);
Tailwind
colors: {
  custom: {
    50: '#c66eae',
    500: '#a8228d',
    950: '#000000',
  },
}
SCSS
$custom: #a8228d;
$custom-light: #c66eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a8228d",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 312.09,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51134,
    "c": 0.19943,
    "h": 338
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#A8228D
secondary
#61C575
accent
#E9613F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8228D

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

Preview Lab → · Contrast checker → · Palette generator →

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