#AF2894#AF2894

#AF2894 is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.0% C 0.202 H 337.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF2894
RGBrgb(175, 40, 148)
HSLhsl(312, 63%, 42%)
HSVhsv(312, 77%, 69%)
CMYKcmyk(0%, 77.1%, 15.4%, 31.4%)
CIE-LABlab(42.42, 63.28, -28.29)
CIE-LCHlch(42.42, 69.31, 335.91°)
OKLaboklab(53.05% 0.1871 -0.0769)
OKLCHoklch(53.05% 0.202 337.7)
XYZxyz(23.7838, 12.7719, 29.2239)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2894 #28AF43
analogous
#8728AF #AF2894 #AF2851
triadic
#AF2894 #94AF28 #2894AF
tetradic
#AF2894 #AF8728 #28AF43 #2851AF
square
#AF2894 #AF8728 #28AF43 #2851AF
split-complementary
#AF2894 #51AF28 #28AF87
monochromatic
#4B1140 #7D1D6A #AF2894 #D441B6 #DF73C9

Accessibility & contrast

On white

5.91
#AF2894 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF2894 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2894
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2894#FFFFFF#000000##FFFFFF
##AF28941.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5797
Deuteranopia (green-blind)
#5C6B91
Tritanopia (blue-blind)
#B9305C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2894;
/* rgb */ color: rgb(175, 40, 148);
/* oklch */ color: oklch(53.0% 0.202 337.7);
Tailwind
colors: {
  custom: {
    50: '#cb71b3',
    500: '#af2894',
    950: '#000000',
  },
}
SCSS
$custom: #af2894;
$custom-light: #cb71b3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2894",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 312,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.20231,
    "h": 337.7
  },
  "luminance": 0.1277
}

Semantic roles & 50–950 ramp

primary
#AF2894
secondary
#6DC67F
accent
#E66342
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2894

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

Preview Lab → · Contrast checker → · Palette generator →

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