#AF2D98#AF2D98

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

Color values

HEX#AF2D98
RGBrgb(175, 45, 152)
HSLhsl(311, 59%, 43%)
HSVhsv(311, 74%, 69%)
CMYKcmyk(0%, 74.3%, 13.1%, 31.4%)
CIE-LABlab(43.15, 62.31, -29.56)
CIE-LCHlch(43.15, 68.97, 334.62°)
OKLaboklab(53.64% 0.1829 -0.0806)
OKLCHoklch(53.64% 0.2 336.2)
XYZxyz(24.2855, 13.2599, 30.9801)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D98 #2DAF44
analogous
#852DAF #AF2D98 #AF2D57
triadic
#AF2D98 #98AF2D #2D98AF
tetradic
#AF2D98 #AF852D #2DAF44 #2D57AF
square
#AF2D98 #AF852D #2DAF44 #2D57AF
split-complementary
#AF2D98 #57AF2D #2DAF85
monochromatic
#4E1443 #7E206E #AF2D98 #D049B8 #DD7ACB

Accessibility & contrast

On white

5.75
#AF2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D98
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D98#FFFFFF#000000##FFFFFF
##AF2D981.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#B8365F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d98;
/* rgb */ color: rgb(175, 45, 152);
/* oklch */ color: oklch(53.6% 0.200 336.2);
Tailwind
colors: {
  custom: {
    50: '#cb73b6',
    500: '#af2d98',
    950: '#000000',
  },
}
SCSS
$custom: #af2d98;
$custom-light: #cb73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d98",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 310.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53639,
    "c": 0.19985,
    "h": 336.2
  },
  "luminance": 0.13258
}

Semantic roles & 50–950 ramp

primary
#AF2D98
secondary
#73C581
accent
#E26146
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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