#AF285A#AF285A

#AF285A is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.7% C 0.174 H 3.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AF285A
RGBrgb(175, 40, 90)
HSLhsl(338, 63%, 42%)
HSVhsv(338, 77%, 69%)
CMYKcmyk(0%, 77.1%, 48.6%, 31.4%)
CIE-LABlab(40.20, 56.56, 4.32)
CIE-LCHlch(40.20, 56.72, 4.37°)
OKLaboklab(50.71% 0.1732 0.0116)
OKLCHoklch(50.71% 0.174 3.8)
XYZxyz(20.2852, 11.3725, 10.7978)
Luminance0.1137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF285A #28AF7D
analogous
#AF289E #AF285A #AF3A28
triadic
#AF285A #5AAF28 #285AAF
tetradic
#AF285A #9EAF28 #28AF7D #3A28AF
square
#AF285A #9EAF28 #28AF7D #3A28AF
split-complementary
#AF285A #28AF3A #289EAF
monochromatic
#4B1127 #7D1D40 #AF285A #D44177 #DF739B

Accessibility & contrast

On white

6.41
#AF285A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AF285A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF285A
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF285A#FFFFFF#000000##FFFFFF
##AF285A1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494E5B
Deuteranopia (green-blind)
#6D6857
Tritanopia (blue-blind)
#BF043E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af285a;
/* rgb */ color: rgb(175, 40, 90);
/* oklch */ color: oklch(50.7% 0.174 3.8);
Tailwind
colors: {
  custom: {
    50: '#cd6f88',
    500: '#af285a',
    950: '#000000',
  },
}
SCSS
$custom: #af285a;
$custom-light: #cd6f88;
$custom-dark: #000000;
JSON
{
  "hex": "#af285a",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 337.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5071,
    "c": 0.17359,
    "h": 3.8
  },
  "luminance": 0.1137
}

Semantic roles & 50–950 ramp

primary
#AF285A
secondary
#6DC6A5
accent
#E6A942
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF285A

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

Preview Lab → · Contrast checker → · Palette generator →

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