#AF2798#AF2798

#AF2798 is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.2% C 0.206 H 336.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AF2798
RGBrgb(175, 39, 152)
HSLhsl(310, 64%, 42%)
HSVhsv(310, 78%, 69%)
CMYKcmyk(0%, 77.7%, 13.1%, 31.4%)
CIE-LABlab(42.51, 64.14, -30.56)
CIE-LCHlch(42.51, 71.05, 334.52°)
OKLaboklab(53.18% 0.1883 -0.0834)
OKLCHoklch(53.18% 0.206 336.1)
XYZxyz(24.0726, 12.8342, 30.9091)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2798 #27AF3E
analogous
#8227AF #AF2798 #AF2754
triadic
#AF2798 #98AF27 #2798AF
tetradic
#AF2798 #AF8227 #27AF3E #2754AF
square
#AF2798 #AF8227 #27AF3E #2754AF
split-complementary
#AF2798 #54AF27 #27AF82
monochromatic
#4B1141 #7D1C6D #AF2798 #D43FBB #DF71CD

Accessibility & contrast

On white

5.89
#AF2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2798
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2798#FFFFFF#000000##FFFFFF
##AF27981.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#5A6C95
Tritanopia (blue-blind)
#B8325E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2798;
/* rgb */ color: rgb(175, 39, 152);
/* oklch */ color: oklch(53.2% 0.206 336.1);
Tailwind
colors: {
  custom: {
    50: '#cb71b6',
    500: '#af2798',
    950: '#000000',
  },
}
SCSS
$custom: #af2798;
$custom-light: #cb71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2798",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 310.147,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53179,
    "c": 0.20598,
    "h": 336.1
  },
  "luminance": 0.12832
}

Semantic roles & 50–950 ramp

primary
#AF2798
secondary
#6BC67B
accent
#E75D41
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2798

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

Preview Lab → · Contrast checker → · Palette generator →

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