#AF2F94#AF2F94

#AF2F94 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.6% C 0.195 H 337.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF2F94
RGBrgb(175, 47, 148)
HSLhsl(313, 58%, 44%)
HSVhsv(313, 73%, 69%)
CMYKcmyk(0%, 73.1%, 15.4%, 31.4%)
CIE-LABlab(43.19, 61.07, -27.08)
CIE-LCHlch(43.19, 66.80, 336.09°)
OKLaboklab(53.61% 0.1805 -0.0735)
OKLCHoklch(53.61% 0.195 337.8)
XYZxyz(24.0415, 13.2874, 29.3098)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F94 #2FAF4A
analogous
#8A2FAF #AF2F94 #AF2F54
triadic
#AF2F94 #94AF2F #2F94AF
tetradic
#AF2F94 #AF8A2F #2FAF4A #2F54AF
square
#AF2F94 #AF8A2F #2FAF4A #2F54AF
split-complementary
#AF2F94 #54AF2F #2FAF8A
monochromatic
#4F1542 #7F226B #AF2F94 #CF4CB3 #DC7CC8

Accessibility & contrast

On white

5.74
#AF2F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F94
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F94#FFFFFF#000000##FFFFFF
##AF2F941.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345997
Deuteranopia (green-blind)
#5F6D91
Tritanopia (blue-blind)
#B9365E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f94;
/* rgb */ color: rgb(175, 47, 148);
/* oklch */ color: oklch(53.6% 0.195 337.8);
Tailwind
colors: {
  custom: {
    50: '#cb74b3',
    500: '#af2f94',
    950: '#000000',
  },
}
SCSS
$custom: #af2f94;
$custom-light: #cb74b3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f94",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 312.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53606,
    "c": 0.19488,
    "h": 337.8
  },
  "luminance": 0.13285
}

Semantic roles & 50–950 ramp

primary
#AF2F94
secondary
#75C486
accent
#E16747
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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