#AF285F#AF285F

#AF285F is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.175 H 1.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF285F
RGBrgb(175, 40, 95)
HSLhsl(336, 63%, 42%)
HSVhsv(336, 77%, 69%)
CMYKcmyk(0%, 77.1%, 45.7%, 31.4%)
CIE-LABlab(40.35, 57.01, 1.37)
CIE-LCHlch(40.35, 57.03, 1.38°)
OKLaboklab(50.86% 0.175 0.0042)
OKLCHoklch(50.86% 0.175 1.4)
XYZxyz(20.5052, 11.4605, 11.9566)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF285F #28AF78
analogous
#AF28A2 #AF285F #AF3528
triadic
#AF285F #5FAF28 #285FAF
tetradic
#AF285F #A2AF28 #28AF78 #3528AF
square
#AF285F #A2AF28 #28AF78 #3528AF
split-complementary
#AF285F #28AF35 #28A2AF
monochromatic
#4B1129 #7D1D44 #AF285F #D4417D #DF739F

Accessibility & contrast

On white

6.38
#AF285F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF285F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF285F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF285F#FFFFFF#000000##FFFFFF
##AF285F1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484E60
Deuteranopia (green-blind)
#6C685C
Tritanopia (blue-blind)
#BE0A40
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af285f;
/* rgb */ color: rgb(175, 40, 95);
/* oklch */ color: oklch(50.9% 0.175 1.4);
Tailwind
colors: {
  custom: {
    50: '#cc6f8c',
    500: '#af285f',
    950: '#000000',
  },
}
SCSS
$custom: #af285f;
$custom-light: #cc6f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#af285f",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 335.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50863,
    "c": 0.17502,
    "h": 1.4
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#AF285F
secondary
#6DC6A2
accent
#E6A342
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF285F

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

Preview Lab → · Contrast checker → · Palette generator →

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