#AF2A5B#AF2A5B

#AF2A5B is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.172 H 3.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF2A5B
RGBrgb(175, 42, 91)
HSLhsl(338, 61%, 43%)
HSVhsv(338, 76%, 69%)
CMYKcmyk(0%, 76%, 48%, 31.4%)
CIE-LABlab(40.46, 56.01, 4.06)
CIE-LCHlch(40.46, 56.15, 4.14°)
OKLaboklab(50.91% 0.1715 0.011)
OKLCHoklch(50.91% 0.172 3.7)
XYZxyz(20.3972, 11.5280, 11.0465)
Luminance0.1153 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A5B #2AAF7E
analogous
#AF2A9D #AF2A5B #AF3C2A
triadic
#AF2A5B #5BAF2A #2A5BAF
tetradic
#AF2A5B #9DAF2A #2AAF7E #3C2AAF
square
#AF2A5B #9DAF2A #2AAF7E #3C2AAF
split-complementary
#AF2A5B #2AAF3C #2A9DAF
monochromatic
#4C1228 #7E1E41 #AF2A5B #D24478 #DE759C

Accessibility & contrast

On white

6.35
#AF2A5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AF2A5B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A5B
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A5B#FFFFFF#000000##FFFFFF
##AF2A5B1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4F5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BE0B3F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a5b;
/* rgb */ color: rgb(175, 42, 91);
/* oklch */ color: oklch(50.9% 0.172 3.7);
Tailwind
colors: {
  custom: {
    50: '#cd7089',
    500: '#af2a5b',
    950: '#000000',
  },
}
SCSS
$custom: #af2a5b;
$custom-light: #cd7089;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a5b",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 91
  },
  "hsl": {
    "h": 337.895,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50907,
    "c": 0.17186,
    "h": 3.7
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#AF2A5B
secondary
#6FC6A6
accent
#E4A943
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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