#AF2F58#AF2F58

#AF2F58 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.3% C 0.166 H 6.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF2F58
RGBrgb(175, 47, 88)
HSLhsl(341, 58%, 44%)
HSVhsv(341, 73%, 69%)
CMYKcmyk(0%, 73.1%, 49.7%, 31.4%)
CIE-LABlab(40.98, 54.03, 6.70)
CIE-LCHlch(40.98, 54.45, 7.07°)
OKLaboklab(51.27% 0.1649 0.0176)
OKLCHoklch(51.27% 0.166 6.1)
XYZxyz(20.4589, 11.8543, 10.4414)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F58 #2FAF86
analogous
#AF2F98 #AF2F58 #AF462F
triadic
#AF2F58 #58AF2F #2F58AF
tetradic
#AF2F58 #98AF2F #2FAF86 #462FAF
square
#AF2F58 #98AF2F #2FAF86 #462FAF
split-complementary
#AF2F58 #2FAF46 #2F98AF
monochromatic
#4F1527 #7F2240 #AF2F58 #CF4C76 #DC7C9B

Accessibility & contrast

On white

6.23
#AF2F58 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2F58 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F58
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F58#FFFFFF#000000##FFFFFF
##AF2F581.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5059
Deuteranopia (green-blind)
#6F6A55
Tritanopia (blue-blind)
#BF1540
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f58;
/* rgb */ color: rgb(175, 47, 88);
/* oklch */ color: oklch(51.3% 0.166 6.1);
Tailwind
colors: {
  custom: {
    50: '#cd7286',
    500: '#af2f58',
    950: '#000000',
  },
}
SCSS
$custom: #af2f58;
$custom-light: #cd7286;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f58",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 340.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51269,
    "c": 0.16585,
    "h": 6.1
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#AF2F58
secondary
#75C4AB
accent
#E1B047
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF2F58

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

Preview Lab → · Contrast checker → · Palette generator →

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