#AF2B5B#AF2B5B

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

Color values

HEX#AF2B5B
RGBrgb(175, 43, 91)
HSLhsl(338, 61%, 43%)
HSVhsv(338, 75%, 69%)
CMYKcmyk(0%, 75.4%, 48%, 31.4%)
CIE-LABlab(40.57, 55.68, 4.23)
CIE-LCHlch(40.57, 55.84, 4.34°)
OKLaboklab(50.99% 0.1705 0.0114)
OKLCHoklch(50.99% 0.171 3.8)
XYZxyz(20.4331, 11.5998, 11.0585)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B5B #2BAF7F
analogous
#AF2B9D #AF2B5B #AF3D2B
triadic
#AF2B5B #5BAF2B #2B5BAF
tetradic
#AF2B5B #9DAF2B #2BAF7F #3D2BAF
square
#AF2B5B #9DAF2B #2BAF7F #3D2BAF
split-complementary
#AF2B5B #2BAF3D #2B9DAF
monochromatic
#4D1328 #7E1F41 #AF2B5B #D14679 #DE779C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2B5B#FFFFFF#000000##FFFFFF
##AF2B5B1.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)
#4A4F5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BE0E40
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2b5b;
/* rgb */ color: rgb(175, 43, 91);
/* oklch */ color: oklch(51.0% 0.171 3.8);
Tailwind
colors: {
  custom: {
    50: '#cd7089',
    500: '#af2b5b',
    950: '#000000',
  },
}
SCSS
$custom: #af2b5b;
$custom-light: #cd7089;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b5b",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 91
  },
  "hsl": {
    "h": 338.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50993,
    "c": 0.17083,
    "h": 3.8
  },
  "luminance": 0.11597
}

Semantic roles & 50–950 ramp

primary
#AF2B5B
secondary
#70C5A6
accent
#E4AA44
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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