#AF2287#AF2287

#AF2287 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 52.0% C 0.200 H 342.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF2287
RGBrgb(175, 34, 135)
HSLhsl(317, 67%, 41%)
HSVhsv(317, 81%, 69%)
CMYKcmyk(0%, 80.6%, 22.9%, 31.4%)
CIE-LABlab(41.23, 63.19, -22.21)
CIE-LCHlch(41.23, 66.98, 340.63°)
OKLaboklab(52% 0.1906 -0.0596)
OKLCHoklch(52% 0.2 342.6)
XYZxyz(22.6253, 12.0097, 24.0436)
Luminance0.1201 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2287 #22AF4A
analogous
#9022AF #AF2287 #AF2241
triadic
#AF2287 #87AF22 #2287AF
tetradic
#AF2287 #AF9022 #22AF4A #2241AF
square
#AF2287 #AF9022 #22AF4A #2241AF
split-complementary
#AF2287 #41AF22 #22AF90
monochromatic
#490E38 #7C185F #AF2287 #D836AA #E269C0

Accessibility & contrast

On white

6.17
#AF2287 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF2287 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2287
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2287#FFFFFF#000000##FFFFFF
##AF22871.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538A
Deuteranopia (green-blind)
#606984
Tritanopia (blue-blind)
#BA2353
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2287;
/* rgb */ color: rgb(175, 34, 135);
/* oklch */ color: oklch(52.0% 0.200 342.6);
Tailwind
colors: {
  custom: {
    50: '#cb6eaa',
    500: '#af2287',
    950: '#000000',
  },
}
SCSS
$custom: #af2287;
$custom-light: #cb6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2287",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 317.021,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51995,
    "c": 0.19967,
    "h": 342.6
  },
  "luminance": 0.12007
}

Semantic roles & 50–950 ramp

primary
#AF2287
secondary
#65C881
accent
#EA6E3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF2287

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

Preview Lab → · Contrast checker → · Palette generator →

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