#A22787#A22787

#A22787 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.187 H 338.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#A22787
RGBrgb(162, 39, 135)
HSLhsl(313, 61%, 39%)
HSVhsv(313, 76%, 64%)
CMYKcmyk(0%, 75.9%, 16.7%, 36.5%)
CIE-LABlab(39.38, 58.67, -25.26)
CIE-LCHlch(39.38, 63.88, 336.70°)
OKLaboklab(50.22% 0.174 -0.0685)
OKLCHoklch(50.22% 0.187 338.5)
XYZxyz(19.9995, 10.8836, 23.9644)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22787 #27A242
analogous
#8027A2 #A22787 #A22749
triadic
#A22787 #87A227 #2787A2
tetradic
#A22787 #A28027 #27A242 #2749A2
square
#A22787 #A28027 #27A242 #2749A2
split-complementary
#A22787 #49A227 #27A280
monochromatic
#3F0F35 #711B5E #A22787 #CF37AE #DB69C2

Accessibility & contrast

On white

6.61
#A22787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A22787
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22787#FFFFFF#000000##FFFFFF
##A227871.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D518A
Deuteranopia (green-blind)
#576484
Tritanopia (blue-blind)
#AB2D54
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a22787;
/* rgb */ color: rgb(162, 39, 135);
/* oklch */ color: oklch(50.2% 0.187 338.5);
Tailwind
colors: {
  custom: {
    50: '#c16eaa',
    500: '#a22787',
    950: '#000000',
  },
}
SCSS
$custom: #a22787;
$custom-light: #c16eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#a22787",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 313.171,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.18703,
    "h": 338.5
  },
  "luminance": 0.10882
}

Semantic roles & 50–950 ramp

primary
#A22787
secondary
#64C178
accent
#E46743
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A22787

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

Preview Lab → · Contrast checker → · Palette generator →

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