#A8227B#A8227B

#A8227B is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.3% C 0.188 H 345.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#A8227B
RGBrgb(168, 34, 123)
HSLhsl(320, 66%, 40%)
HSVhsv(320, 80%, 66%)
CMYKcmyk(0%, 79.8%, 26.8%, 34.1%)
CIE-LABlab(39.41, 60.01, -17.71)
CIE-LCHlch(39.41, 62.57, 343.56°)
OKLaboklab(50.27% 0.1823 -0.0471)
OKLCHoklch(50.27% 0.188 345.5)
XYZxyz(20.2966, 10.9012, 19.7703)
Luminance0.1090 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8227B #22A84F
analogous
#9222A8 #A8227B #A82238
triadic
#A8227B #7BA822 #227BA8
tetradic
#A8227B #A89222 #22A84F #2238A8
square
#A8227B #A89222 #22A84F #2238A8
split-complementary
#A8227B #38A822 #22A892
monochromatic
#420D30 #751856 #A8227B #D5329E #E065B6

Accessibility & contrast

On white

6.60
#A8227B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#A8227B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8227B
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8227B#FFFFFF#000000##FFFFFF
##A8227B1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#5E6578
Tritanopia (blue-blind)
#B41F4C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a8227b;
/* rgb */ color: rgb(168, 34, 123);
/* oklch */ color: oklch(50.3% 0.188 345.5);
Tailwind
colors: {
  custom: {
    50: '#c66da1',
    500: '#a8227b',
    950: '#000000',
  },
}
SCSS
$custom: #a8227b;
$custom-light: #c66da1;
$custom-dark: #000000;
JSON
{
  "hex": "#a8227b",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 320.149,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50272,
    "c": 0.18828,
    "h": 345.5
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

primary
#A8227B
secondary
#61C582
accent
#E9783F
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #A8227B

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

Preview Lab → · Contrast checker → · Palette generator →

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