#A8228B#A8228B

#A8228B is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.198 H 338.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#A8228B
RGBrgb(168, 34, 139)
HSLhsl(313, 66%, 40%)
HSVhsv(313, 80%, 66%)
CMYKcmyk(0%, 79.8%, 17.3%, 34.1%)
CIE-LABlab(40.14, 62.11, -26.46)
CIE-LCHlch(40.14, 67.51, 336.93°)
OKLaboklab(51.03% 0.1847 -0.0718)
OKLCHoklch(51.03% 0.198 338.8)
XYZxyz(21.3812, 11.3351, 25.4829)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8228B #22A83F
analogous
#8222A8 #A8228B #A82248
triadic
#A8228B #8BA822 #228BA8
tetradic
#A8228B #A88222 #22A83F #2248A8
square
#A8228B #A88222 #22A83F #2248A8
split-complementary
#A8228B #48A822 #22A882
monochromatic
#420D37 #751861 #A8228B #D532B2 #E065C5

Accessibility & contrast

On white

6.43
#A8228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A8228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8228B
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8228B#FFFFFF#000000##FFFFFF
##A8228B1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#596688
Tritanopia (blue-blind)
#B22955
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8228b;
/* rgb */ color: rgb(168, 34, 139);
/* oklch */ color: oklch(51.0% 0.198 338.8);
Tailwind
colors: {
  custom: {
    50: '#c66ead',
    500: '#a8228b',
    950: '#000000',
  },
}
SCSS
$custom: #a8228b;
$custom-light: #c66ead;
$custom-dark: #000000;
JSON
{
  "hex": "#a8228b",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 312.985,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51033,
    "c": 0.19812,
    "h": 338.8
  },
  "luminance": 0.11333
}

Semantic roles & 50–950 ramp

primary
#A8228B
secondary
#61C576
accent
#E9633F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8228B

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

Preview Lab → · Contrast checker → · Palette generator →

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