#AF288C#AF288C

#AF288C is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.7% C 0.197 H 340.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF288C
RGBrgb(175, 40, 140)
HSLhsl(316, 63%, 42%)
HSVhsv(316, 77%, 69%)
CMYKcmyk(0%, 77.1%, 20%, 31.4%)
CIE-LABlab(42.04, 62.17, -24.01)
CIE-LCHlch(42.04, 66.65, 338.88°)
OKLaboklab(52.65% 0.1862 -0.0647)
OKLCHoklch(52.65% 0.197 340.8)
XYZxyz(23.1723, 12.5274, 26.0035)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF288C #28AF4B
analogous
#8F28AF #AF288C #AF2848
triadic
#AF288C #8CAF28 #288CAF
tetradic
#AF288C #AF8F28 #28AF4B #2848AF
square
#AF288C #AF8F28 #28AF4B #2848AF
split-complementary
#AF288C #48AF28 #28AF8F
monochromatic
#4B113C #7D1D64 #AF288C #D441AD #DF73C3

Accessibility & contrast

On white

5.99
#AF288C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF288C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF288C
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF288C#FFFFFF#000000##FFFFFF
##AF288C1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558F
Deuteranopia (green-blind)
#606B89
Tritanopia (blue-blind)
#BA2C57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af288c;
/* rgb */ color: rgb(175, 40, 140);
/* oklch */ color: oklch(52.7% 0.197 340.8);
Tailwind
colors: {
  custom: {
    50: '#cb71ae',
    500: '#af288c',
    950: '#000000',
  },
}
SCSS
$custom: #af288c;
$custom-light: #cb71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af288c",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 315.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52654,
    "c": 0.19709,
    "h": 340.8
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#AF288C
secondary
#6DC684
accent
#E66C42
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF288C

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

Preview Lab → · Contrast checker → · Palette generator →

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