#AF285E#AF285E

#AF285E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.175 H 1.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF285E
RGBrgb(175, 40, 94)
HSLhsl(336, 63%, 42%)
HSVhsv(336, 77%, 69%)
CMYKcmyk(0%, 77.1%, 46.3%, 31.4%)
CIE-LABlab(40.32, 56.92, 1.96)
CIE-LCHlch(40.32, 56.95, 1.97°)
OKLaboklab(50.83% 0.1746 0.0057)
OKLCHoklch(50.83% 0.175 1.9)
XYZxyz(20.4600, 11.4424, 11.7187)
Luminance0.1144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF285E #28AF79
analogous
#AF28A2 #AF285E #AF3528
triadic
#AF285E #5EAF28 #285EAF
tetradic
#AF285E #A2AF28 #28AF79 #3528AF
square
#AF285E #A2AF28 #28AF79 #3528AF
split-complementary
#AF285E #28AF35 #28A2AF
monochromatic
#4B1128 #7D1D43 #AF285E #D4417B #DF739E

Accessibility & contrast

On white

6.39
#AF285E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF285E
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF285E#FFFFFF#000000##FFFFFF
##AF285E1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484E5F
Deuteranopia (green-blind)
#6C685B
Tritanopia (blue-blind)
#BE0940
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af285e;
/* rgb */ color: rgb(175, 40, 94);
/* oklch */ color: oklch(50.8% 0.175 1.9);
Tailwind
colors: {
  custom: {
    50: '#cc6f8b',
    500: '#af285e',
    950: '#000000',
  },
}
SCSS
$custom: #af285e;
$custom-light: #cc6f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#af285e",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 336,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50832,
    "c": 0.17471,
    "h": 1.9
  },
  "luminance": 0.1144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF285E

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

Preview Lab → · Contrast checker → · Palette generator →

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