#AF2881#AF2881

#AF2881 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.190 H 345.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AF2881
RGBrgb(175, 40, 129)
HSLhsl(320, 63%, 42%)
HSVhsv(320, 77%, 69%)
CMYKcmyk(0%, 77.1%, 26.3%, 31.4%)
CIE-LABlab(41.56, 60.74, -18.01)
CIE-LCHlch(41.56, 63.35, 343.48°)
OKLaboklab(52.15% 0.1843 -0.0479)
OKLCHoklch(52.15% 0.19 345.4)
XYZxyz(22.4014, 12.2190, 21.9434)
Luminance0.1222 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2881 #28AF56
analogous
#9928AF #AF2881 #AF283E
triadic
#AF2881 #81AF28 #2881AF
tetradic
#AF2881 #AF9928 #28AF56 #283EAF
square
#AF2881 #AF9928 #28AF56 #283EAF
split-complementary
#AF2881 #3EAF28 #28AF99
monochromatic
#4B1138 #7D1D5C #AF2881 #D441A1 #DF73BA

Accessibility & contrast

On white

6.10
#AF2881 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF2881 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2881
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2881#FFFFFF#000000##FFFFFF
##AF28811.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5383
Deuteranopia (green-blind)
#636A7E
Tritanopia (blue-blind)
#BB2552
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2881;
/* rgb */ color: rgb(175, 40, 129);
/* oklch */ color: oklch(52.1% 0.190 345.4);
Tailwind
colors: {
  custom: {
    50: '#cb70a5',
    500: '#af2881',
    950: '#000000',
  },
}
SCSS
$custom: #af2881;
$custom-light: #cb70a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2881",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 320.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52149,
    "c": 0.19042,
    "h": 345.4
  },
  "luminance": 0.12217
}

Semantic roles & 50–950 ramp

primary
#AF2881
secondary
#6DC68B
accent
#E67A42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2881

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

Preview Lab → · Contrast checker → · Palette generator →

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