#AF288E#AF288E

#AF288E is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.8% C 0.198 H 340.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF288E
RGBrgb(175, 40, 142)
HSLhsl(315, 63%, 42%)
HSVhsv(315, 77%, 69%)
CMYKcmyk(0%, 77.1%, 18.9%, 31.4%)
CIE-LABlab(42.13, 62.44, -25.09)
CIE-LCHlch(42.13, 67.29, 338.11°)
OKLaboklab(52.75% 0.1864 -0.0678)
OKLCHoklch(52.75% 0.198 340)
XYZxyz(23.3211, 12.5869, 26.7873)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288E #28AF49
analogous
#8D28AF #AF288E #AF284A
triadic
#AF288E #8EAF28 #288EAF
tetradic
#AF288E #AF8D28 #28AF49 #284AAF
square
#AF288E #AF8D28 #28AF49 #284AAF
split-complementary
#AF288E #4AAF28 #28AF8D
monochromatic
#4B113D #7D1D66 #AF288E #D441B0 #DF73C4

Accessibility & contrast

On white

5.97
#AF288E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF288E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF288E
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288E#FFFFFF#000000##FFFFFF
##AF288E1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#BA2D59
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af288e;
/* rgb */ color: rgb(175, 40, 142);
/* oklch */ color: oklch(52.8% 0.198 340.0);
Tailwind
colors: {
  custom: {
    50: '#cb71af',
    500: '#af288e',
    950: '#000000',
  },
}
SCSS
$custom: #af288e;
$custom-light: #cb71af;
$custom-dark: #000000;
JSON
{
  "hex": "#af288e",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 314.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5275,
    "c": 0.19836,
    "h": 340
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#AF288E
secondary
#6DC683
accent
#E66A42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288E

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

Preview Lab → · Contrast checker → · Palette generator →

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