#AF2F91#AF2F91

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

Color values

HEX#AF2F91
RGBrgb(175, 47, 145)
HSLhsl(314, 58%, 44%)
HSVhsv(314, 73%, 69%)
CMYKcmyk(0%, 73.1%, 17.1%, 31.4%)
CIE-LABlab(43.05, 60.64, -25.48)
CIE-LCHlch(43.05, 65.78, 337.21°)
OKLaboklab(53.46% 0.1801 -0.0689)
OKLCHoklch(53.46% 0.193 339.1)
XYZxyz(23.8071, 13.1936, 28.0754)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F91 #2FAF4D
analogous
#8D2FAF #AF2F91 #AF2F51
triadic
#AF2F91 #91AF2F #2F91AF
tetradic
#AF2F91 #AF8D2F #2FAF4D #2F51AF
square
#AF2F91 #AF8D2F #2FAF4D #2F51AF
split-complementary
#AF2F91 #51AF2F #2FAF8D
monochromatic
#4F1541 #7F2269 #AF2F91 #CF4CB0 #DC7CC6

Accessibility & contrast

On white

5.77
#AF2F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F91
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F91#FFFFFF#000000##FFFFFF
##AF2F911.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365994
Deuteranopia (green-blind)
#606D8E
Tritanopia (blue-blind)
#B9345C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f91;
/* rgb */ color: rgb(175, 47, 145);
/* oklch */ color: oklch(53.5% 0.193 339.1);
Tailwind
colors: {
  custom: {
    50: '#cb74b1',
    500: '#af2f91',
    950: '#000000',
  },
}
SCSS
$custom: #af2f91;
$custom-light: #cb74b1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f91",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 314.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5346,
    "c": 0.19285,
    "h": 339.1
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#AF2F91
secondary
#75C488
accent
#E16B47
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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