#AF2F95#AF2F95

#AF2F95 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.7% C 0.196 H 337.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF2F95
RGBrgb(175, 47, 149)
HSLhsl(312, 58%, 44%)
HSVhsv(312, 73%, 69%)
CMYKcmyk(0%, 73.1%, 14.9%, 31.4%)
CIE-LABlab(43.24, 61.21, -27.61)
CIE-LCHlch(43.24, 67.15, 335.72°)
OKLaboklab(53.66% 0.1806 -0.075)
OKLCHoklch(53.66% 0.196 337.4)
XYZxyz(24.1210, 13.3192, 29.7284)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F95 #2FAF49
analogous
#892FAF #AF2F95 #AF2F55
triadic
#AF2F95 #95AF2F #2F95AF
tetradic
#AF2F95 #AF892F #2FAF49 #2F55AF
square
#AF2F95 #AF892F #2FAF49 #2F55AF
split-complementary
#AF2F95 #55AF2F #2FAF89
monochromatic
#4F1543 #7F226C #AF2F95 #CF4CB4 #DC7CC9

Accessibility & contrast

On white

5.73
#AF2F95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2F95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F95
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F95#FFFFFF#000000##FFFFFF
##AF2F951.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A98
Deuteranopia (green-blind)
#5F6D92
Tritanopia (blue-blind)
#B9365E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f95;
/* rgb */ color: rgb(175, 47, 149);
/* oklch */ color: oklch(53.7% 0.196 337.4);
Tailwind
colors: {
  custom: {
    50: '#cb74b4',
    500: '#af2f95',
    950: '#000000',
  },
}
SCSS
$custom: #af2f95;
$custom-light: #cb74b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f95",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 312.188,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53656,
    "c": 0.19557,
    "h": 337.4
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#AF2F95
secondary
#75C485
accent
#E16647
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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