#AF2A5D#AF2A5D

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

Color values

HEX#AF2A5D
RGBrgb(175, 42, 93)
HSLhsl(337, 61%, 43%)
HSVhsv(337, 76%, 69%)
CMYKcmyk(0%, 76%, 46.9%, 31.4%)
CIE-LABlab(40.51, 56.19, 2.88)
CIE-LCHlch(40.51, 56.26, 2.93°)
OKLaboklab(50.97% 0.1722 0.008)
OKLCHoklch(50.97% 0.172 2.7)
XYZxyz(20.4846, 11.5629, 11.5070)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A5D #2AAF7C
analogous
#AF2AA0 #AF2A5D #AF392A
triadic
#AF2A5D #5DAF2A #2A5DAF
tetradic
#AF2A5D #A0AF2A #2AAF7C #392AAF
square
#AF2A5D #A0AF2A #2AAF7C #392AAF
split-complementary
#AF2A5D #2AAF39 #2AA0AF
monochromatic
#4C1229 #7E1E43 #AF2A5D #D2447B #DE759E

Accessibility & contrast

On white

6.34
#AF2A5D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A5D
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A5D#FFFFFF#000000##FFFFFF
##AF2A5D1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494F5E
Deuteranopia (green-blind)
#6D695A
Tritanopia (blue-blind)
#BE0D40
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a5d;
/* rgb */ color: rgb(175, 42, 93);
/* oklch */ color: oklch(51.0% 0.172 2.7);
Tailwind
colors: {
  custom: {
    50: '#cc708a',
    500: '#af2a5d',
    950: '#000000',
  },
}
SCSS
$custom: #af2a5d;
$custom-light: #cc708a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a5d",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 336.992,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50967,
    "c": 0.17241,
    "h": 2.7
  },
  "luminance": 0.1156
}

Semantic roles & 50–950 ramp

primary
#AF2A5D
secondary
#6FC6A4
accent
#E4A743
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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