#AF2B95#AF2B95

#AF2B95 is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.3% C 0.200 H 337.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF2B95
RGBrgb(175, 43, 149)
HSLhsl(312, 61%, 43%)
HSVhsv(312, 75%, 69%)
CMYKcmyk(0%, 75.4%, 14.9%, 31.4%)
CIE-LABlab(42.78, 62.51, -28.32)
CIE-LCHlch(42.78, 68.63, 335.63°)
OKLaboklab(53.33% 0.1845 -0.077)
OKLCHoklch(53.33% 0.2 337.3)
XYZxyz(23.9684, 13.0139, 29.6776)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B95 #2BAF45
analogous
#872BAF #AF2B95 #AF2B53
triadic
#AF2B95 #95AF2B #2B95AF
tetradic
#AF2B95 #AF872B #2BAF45 #2B53AF
square
#AF2B95 #AF872B #2BAF45 #2B53AF
split-complementary
#AF2B95 #53AF2B #2BAF87
monochromatic
#4D1341 #7E1F6B #AF2B95 #D146B6 #DE77C9

Accessibility & contrast

On white

5.83
#AF2B95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF2B95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B95
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B95#FFFFFF#000000##FFFFFF
##AF2B951.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305898
Deuteranopia (green-blind)
#5D6C92
Tritanopia (blue-blind)
#B9335D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2b95;
/* rgb */ color: rgb(175, 43, 149);
/* oklch */ color: oklch(53.3% 0.200 337.3);
Tailwind
colors: {
  custom: {
    50: '#cb72b4',
    500: '#af2b95',
    950: '#000000',
  },
}
SCSS
$custom: #af2b95;
$custom-light: #cb72b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b95",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 311.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53327,
    "c": 0.19992,
    "h": 337.3
  },
  "luminance": 0.13012
}

Semantic roles & 50–950 ramp

primary
#AF2B95
secondary
#70C581
accent
#E46444
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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