#AF2D95#AF2D95

#AF2D95 is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.5% C 0.198 H 337.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF2D95
RGBrgb(175, 45, 149)
HSLhsl(312, 59%, 43%)
HSVhsv(312, 74%, 69%)
CMYKcmyk(0%, 74.3%, 14.9%, 31.4%)
CIE-LABlab(43.01, 61.87, -27.97)
CIE-LCHlch(43.01, 67.90, 335.67°)
OKLaboklab(53.49% 0.1826 -0.076)
OKLCHoklch(53.49% 0.198 337.4)
XYZxyz(24.0429, 13.1629, 29.7024)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D95 #2DAF47
analogous
#882DAF #AF2D95 #AF2D54
triadic
#AF2D95 #95AF2D #2D95AF
tetradic
#AF2D95 #AF882D #2DAF47 #2D54AF
square
#AF2D95 #AF882D #2DAF47 #2D54AF
split-complementary
#AF2D95 #54AF2D #2DAF88
monochromatic
#4E1442 #7E206C #AF2D95 #D049B5 #DD7AC9

Accessibility & contrast

On white

5.78
#AF2D95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2D95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D95
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D95#FFFFFF#000000##FFFFFF
##AF2D951.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325998
Deuteranopia (green-blind)
#5E6D92
Tritanopia (blue-blind)
#B9355E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d95;
/* rgb */ color: rgb(175, 45, 149);
/* oklch */ color: oklch(53.5% 0.198 337.4);
Tailwind
colors: {
  custom: {
    50: '#cb73b4',
    500: '#af2d95',
    950: '#000000',
  },
}
SCSS
$custom: #af2d95;
$custom-light: #cb73b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d95",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 312,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.19778,
    "h": 337.4
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#AF2D95
secondary
#73C583
accent
#E26546
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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