#AF2B98#AF2B98

#AF2B98 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.5% C 0.202 H 336.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF2B98
RGBrgb(175, 43, 152)
HSLhsl(310, 61%, 43%)
HSVhsv(310, 75%, 69%)
CMYKcmyk(0%, 75.4%, 13.1%, 31.4%)
CIE-LABlab(42.93, 62.94, -29.91)
CIE-LCHlch(42.93, 69.69, 334.59°)
OKLaboklab(53.48% 0.1848 -0.0815)
OKLCHoklch(53.48% 0.202 336.2)
XYZxyz(24.2110, 13.1109, 30.9552)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B98 #2BAF42
analogous
#842BAF #AF2B98 #AF2B56
triadic
#AF2B98 #98AF2B #2B98AF
tetradic
#AF2B98 #AF842B #2BAF42 #2B56AF
square
#AF2B98 #AF842B #2BAF42 #2B56AF
split-complementary
#AF2B98 #56AF2B #2BAF84
monochromatic
#4D1343 #7E1F6D #AF2B98 #D146B9 #DE77CC

Accessibility & contrast

On white

5.80
#AF2B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF2B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B98
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B98#FFFFFF#000000##FFFFFF
##AF2B981.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599B
Deuteranopia (green-blind)
#5C6C95
Tritanopia (blue-blind)
#B8355F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2b98;
/* rgb */ color: rgb(175, 43, 152);
/* oklch */ color: oklch(53.5% 0.202 336.2);
Tailwind
colors: {
  custom: {
    50: '#cb72b6',
    500: '#af2b98',
    950: '#000000',
  },
}
SCSS
$custom: #af2b98;
$custom-light: #cb72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b98",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 310.455,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53479,
    "c": 0.20197,
    "h": 336.2
  },
  "luminance": 0.13109
}

Semantic roles & 50–950 ramp

primary
#AF2B98
secondary
#70C57F
accent
#E46044
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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