#AF2758#AF2758

#AF2758 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.6% C 0.174 H 4.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF2758
RGBrgb(175, 39, 88)
HSLhsl(338, 64%, 42%)
HSVhsv(338, 78%, 69%)
CMYKcmyk(0%, 77.7%, 49.7%, 31.4%)
CIE-LABlab(40.04, 56.69, 5.35)
CIE-LCHlch(40.04, 56.94, 5.39°)
OKLaboklab(50.57% 0.1735 0.0142)
OKLCHoklch(50.57% 0.174 4.7)
XYZxyz(20.1679, 11.2724, 10.3444)
Luminance0.1127 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2758 #27AF7E
analogous
#AF279C #AF2758 #AF3A27
triadic
#AF2758 #58AF27 #2758AF
tetradic
#AF2758 #9CAF27 #27AF7E #3A27AF
square
#AF2758 #9CAF27 #27AF7E #3A27AF
split-complementary
#AF2758 #27AF3A #279CAF
monochromatic
#4B1126 #7D1C3F #AF2758 #D43F75 #DF7199

Accessibility & contrast

On white

6.45
#AF2758 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#AF2758 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2758
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2758#FFFFFF#000000##FFFFFF
##AF27581.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494D59
Deuteranopia (green-blind)
#6D6855
Tritanopia (blue-blind)
#BF003C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2758;
/* rgb */ color: rgb(175, 39, 88);
/* oklch */ color: oklch(50.6% 0.174 4.7);
Tailwind
colors: {
  custom: {
    50: '#cd6f86',
    500: '#af2758',
    950: '#000000',
  },
}
SCSS
$custom: #af2758;
$custom-light: #cd6f86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2758",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 88
  },
  "hsl": {
    "h": 338.382,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5057,
    "c": 0.17405,
    "h": 4.7
  },
  "luminance": 0.1127
}

Semantic roles & 50–950 ramp

primary
#AF2758
secondary
#6BC6A6
accent
#E7AB41
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2758

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

Preview Lab → · Contrast checker → · Palette generator →

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