#AF286C#AF286C

#AF286C is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.180 H 355.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF286C
RGBrgb(175, 40, 108)
HSLhsl(330, 63%, 42%)
HSVhsv(330, 77%, 69%)
CMYKcmyk(0%, 77.1%, 38.3%, 31.4%)
CIE-LABlab(40.76, 58.30, -6.18)
CIE-LCHlch(40.76, 58.63, 353.94°)
OKLaboklab(51.31% 0.1791 -0.0156)
OKLCHoklch(51.31% 0.18 355)
XYZxyz(21.1462, 11.7169, 15.3325)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF286C #28AF6B
analogous
#AF28AF #AF286C #AF2828
triadic
#AF286C #6CAF28 #286CAF
tetradic
#AF286C #AFAF28 #28AF6B #2828AF
square
#AF286C #AFAF28 #28AF6B #2828AF
split-complementary
#AF286C #28AF28 #28AFAF
monochromatic
#4B112F #7D1D4D #AF286C #D4418B #DF73A9

Accessibility & contrast

On white

6.28
#AF286C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF286C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF286C
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF286C#FFFFFF#000000##FFFFFF
##AF286C1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43506E
Deuteranopia (green-blind)
#696969
Tritanopia (blue-blind)
#BD1647
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af286c;
/* rgb */ color: rgb(175, 40, 108);
/* oklch */ color: oklch(51.3% 0.180 355.0);
Tailwind
colors: {
  custom: {
    50: '#cc7096',
    500: '#af286c',
    950: '#000000',
  },
}
SCSS
$custom: #af286c;
$custom-light: #cc7096;
$custom-dark: #000000;
JSON
{
  "hex": "#af286c",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 329.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51305,
    "c": 0.17982,
    "h": 355
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#AF286C
secondary
#6DC699
accent
#E69342
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF286C

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

Preview Lab → · Contrast checker → · Palette generator →

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