#AF2895#AF2895

#AF2895 is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.1% C 0.203 H 337.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF2895
RGBrgb(175, 40, 149)
HSLhsl(312, 63%, 42%)
HSVhsv(312, 77%, 69%)
CMYKcmyk(0%, 77.1%, 14.9%, 31.4%)
CIE-LABlab(42.47, 63.42, -28.82)
CIE-LCHlch(42.47, 69.66, 335.56°)
OKLaboklab(53.1% 0.1872 -0.0784)
OKLCHoklch(53.1% 0.203 337.3)
XYZxyz(23.8633, 12.8037, 29.6425)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2895 #28AF42
analogous
#8628AF #AF2895 #AF2851
triadic
#AF2895 #95AF28 #2895AF
tetradic
#AF2895 #AF8628 #28AF42 #2851AF
square
#AF2895 #AF8628 #28AF42 #2851AF
split-complementary
#AF2895 #51AF28 #28AF86
monochromatic
#4B1140 #7D1D6B #AF2895 #D441B7 #DF73CA

Accessibility & contrast

On white

5.90
#AF2895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF2895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2895
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2895#FFFFFF#000000##FFFFFF
##AF28951.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5798
Deuteranopia (green-blind)
#5C6C92
Tritanopia (blue-blind)
#B9315C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2895;
/* rgb */ color: rgb(175, 40, 149);
/* oklch */ color: oklch(53.1% 0.203 337.3);
Tailwind
colors: {
  custom: {
    50: '#cb71b4',
    500: '#af2895',
    950: '#000000',
  },
}
SCSS
$custom: #af2895;
$custom-light: #cb71b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2895",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 311.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53097,
    "c": 0.20297,
    "h": 337.3
  },
  "luminance": 0.12801
}

Semantic roles & 50–950 ramp

primary
#AF2895
secondary
#6DC67E
accent
#E66242
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2895

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

Preview Lab → · Contrast checker → · Palette generator →

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