#AF2B88#AF2B88

#AF2B88 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.191 H 342.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF2B88
RGBrgb(175, 43, 136)
HSLhsl(318, 61%, 43%)
HSVhsv(318, 75%, 69%)
CMYKcmyk(0%, 75.4%, 22.3%, 31.4%)
CIE-LABlab(42.19, 60.71, -21.34)
CIE-LCHlch(42.19, 64.36, 340.63°)
OKLaboklab(52.7% 0.1827 -0.0572)
OKLCHoklch(52.7% 0.191 342.6)
XYZxyz(22.9878, 12.6217, 24.5134)
Luminance0.1262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B88 #2BAF52
analogous
#942BAF #AF2B88 #AF2B46
triadic
#AF2B88 #88AF2B #2B88AF
tetradic
#AF2B88 #AF942B #2BAF52 #2B46AF
square
#AF2B88 #AF942B #2BAF52 #2B46AF
split-complementary
#AF2B88 #46AF2B #2BAF94
monochromatic
#4D133C #7E1F62 #AF2B88 #D146A8 #DE77BF

Accessibility & contrast

On white

5.96
#AF2B88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF2B88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B88
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B88#FFFFFF#000000##FFFFFF
##AF2B881.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39568B
Deuteranopia (green-blind)
#626B85
Tritanopia (blue-blind)
#BA2C56
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2b88;
/* rgb */ color: rgb(175, 43, 136);
/* oklch */ color: oklch(52.7% 0.191 342.6);
Tailwind
colors: {
  custom: {
    50: '#cb72ab',
    500: '#af2b88',
    950: '#000000',
  },
}
SCSS
$custom: #af2b88;
$custom-light: #cb72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b88",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 317.727,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52701,
    "c": 0.19146,
    "h": 342.6
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

primary
#AF2B88
secondary
#70C58A
accent
#E47344
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2B88

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

Preview Lab → · Contrast checker → · Palette generator →

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