#AF2F92#AF2F92

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

Color values

HEX#AF2F92
RGBrgb(175, 47, 146)
HSLhsl(314, 58%, 44%)
HSVhsv(314, 73%, 69%)
CMYKcmyk(0%, 73.1%, 16.6%, 31.4%)
CIE-LABlab(43.10, 60.78, -26.01)
CIE-LCHlch(43.10, 66.11, 336.83°)
OKLaboklab(53.51% 0.1802 -0.0705)
OKLCHoklch(53.51% 0.194 338.6)
XYZxyz(23.8846, 13.2246, 28.4833)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F92 #2FAF4C
analogous
#8C2FAF #AF2F92 #AF2F52
triadic
#AF2F92 #92AF2F #2F92AF
tetradic
#AF2F92 #AF8C2F #2FAF4C #2F52AF
square
#AF2F92 #AF8C2F #2FAF4C #2F52AF
split-complementary
#AF2F92 #52AF2F #2FAF8C
monochromatic
#4F1542 #7F226A #AF2F92 #CF4CB1 #DC7CC6

Accessibility & contrast

On white

5.76
#AF2F92 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF2F92 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F92
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F92#FFFFFF#000000##FFFFFF
##AF2F921.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365995
Deuteranopia (green-blind)
#606D8F
Tritanopia (blue-blind)
#B9355D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f92;
/* rgb */ color: rgb(175, 47, 146);
/* oklch */ color: oklch(53.5% 0.194 338.6);
Tailwind
colors: {
  custom: {
    50: '#cb74b2',
    500: '#af2f92',
    950: '#000000',
  },
}
SCSS
$custom: #af2f92;
$custom-light: #cb74b2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f92",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 313.594,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53508,
    "c": 0.19352,
    "h": 338.6
  },
  "luminance": 0.13222
}

Semantic roles & 50–950 ramp

primary
#AF2F92
secondary
#75C487
accent
#E16A47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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