#AF2F98#AF2F98

#AF2F98 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.8% C 0.198 H 336.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF2F98
RGBrgb(175, 47, 152)
HSLhsl(311, 58%, 44%)
HSVhsv(311, 73%, 69%)
CMYKcmyk(0%, 73.1%, 13.1%, 31.4%)
CIE-LABlab(43.38, 61.65, -29.19)
CIE-LCHlch(43.38, 68.22, 334.66°)
OKLaboklab(53.81% 0.1809 -0.0795)
OKLCHoklch(53.81% 0.198 336.3)
XYZxyz(24.3636, 13.4162, 31.0061)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F98 #2FAF46
analogous
#862FAF #AF2F98 #AF2F58
triadic
#AF2F98 #98AF2F #2F98AF
tetradic
#AF2F98 #AF862F #2FAF46 #2F58AF
square
#AF2F98 #AF862F #2FAF46 #2F58AF
split-complementary
#AF2F98 #58AF2F #2FAF86
monochromatic
#4F1544 #7F226E #AF2F98 #CF4CB7 #DC7CCB

Accessibility & contrast

On white

5.70
#AF2F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F98
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F98#FFFFFF#000000##FFFFFF
##AF2F981.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#B83860
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f98;
/* rgb */ color: rgb(175, 47, 152);
/* oklch */ color: oklch(53.8% 0.198 336.3);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#af2f98',
    950: '#000000',
  },
}
SCSS
$custom: #af2f98;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f98",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 310.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.19764,
    "h": 336.3
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#AF2F98
secondary
#75C484
accent
#E16347
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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