#AF2B5A#AF2B5A

#AF2B5A is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.0% C 0.171 H 4.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF2B5A
RGBrgb(175, 43, 90)
HSLhsl(339, 61%, 43%)
HSVhsv(339, 75%, 69%)
CMYKcmyk(0%, 75.4%, 48.6%, 31.4%)
CIE-LABlab(40.55, 55.59, 4.82)
CIE-LCHlch(40.55, 55.80, 4.95°)
OKLaboklab(50.96% 0.1701 0.0129)
OKLCHoklch(50.96% 0.171 4.3)
XYZxyz(20.3903, 11.5827, 10.8328)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B5A #2BAF80
analogous
#AF2B9C #AF2B5A #AF3E2B
triadic
#AF2B5A #5AAF2B #2B5AAF
tetradic
#AF2B5A #9CAF2B #2BAF80 #3E2BAF
square
#AF2B5A #9CAF2B #2BAF80 #3E2BAF
split-complementary
#AF2B5A #2BAF3E #2B9CAF
monochromatic
#4D1327 #7E1F41 #AF2B5A #D14677 #DE779B

Accessibility & contrast

On white

6.33
#AF2B5A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AF2B5A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B5A
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B5A#FFFFFF#000000##FFFFFF
##AF2B5A1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4F5B
Deuteranopia (green-blind)
#6E6957
Tritanopia (blue-blind)
#BF0D3F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2b5a;
/* rgb */ color: rgb(175, 43, 90);
/* oklch */ color: oklch(51.0% 0.171 4.3);
Tailwind
colors: {
  custom: {
    50: '#cd7088',
    500: '#af2b5a',
    950: '#000000',
  },
}
SCSS
$custom: #af2b5a;
$custom-light: #cd7088;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b5a",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 90
  },
  "hsl": {
    "h": 338.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.17058,
    "h": 4.3
  },
  "luminance": 0.1158
}

Semantic roles & 50–950 ramp

primary
#AF2B5A
secondary
#70C5A7
accent
#E4AB44
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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