#AF245C#AF245C

#AF245C is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.5% C 0.178 H 2.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#AF245C
RGBrgb(175, 36, 92)
HSLhsl(336, 66%, 41%)
HSVhsv(336, 79%, 69%)
CMYKcmyk(0%, 79.4%, 47.4%, 31.4%)
CIE-LABlab(39.83, 57.93, 2.53)
CIE-LCHlch(39.83, 57.99, 2.50°)
OKLaboklab(50.46% 0.1778 0.0071)
OKLCHoklch(50.46% 0.178 2.3)
XYZxyz(20.2435, 11.1512, 11.2096)
Luminance0.1115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF245C #24AF77
analogous
#AF24A2 #AF245C #AF3124
triadic
#AF245C #5CAF24 #245CAF
tetradic
#AF245C #A2AF24 #24AF77 #3124AF
square
#AF245C #A2AF24 #24AF77 #3124AF
split-complementary
#AF245C #24AF31 #24A2AF
monochromatic
#490F27 #7C1A41 #AF245C #D63A79 #E16D9B

Accessibility & contrast

On white

6.50
#AF245C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#AF245C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF245C
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF245C#FFFFFF#000000##FFFFFF
##AF245C1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D5D
Deuteranopia (green-blind)
#6B6759
Tritanopia (blue-blind)
#BE003D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af245c;
/* rgb */ color: rgb(175, 36, 92);
/* oklch */ color: oklch(50.5% 0.178 2.3);
Tailwind
colors: {
  custom: {
    50: '#cd6e89',
    500: '#af245c',
    950: '#000000',
  },
}
SCSS
$custom: #af245c;
$custom-light: #cd6e89;
$custom-dark: #000000;
JSON
{
  "hex": "#af245c",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 335.827,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.17792,
    "h": 2.3
  },
  "luminance": 0.11148
}

Semantic roles & 50–950 ramp

primary
#AF245C
secondary
#68C7A1
accent
#E9A43F
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF245C

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

Preview Lab → · Contrast checker → · Palette generator →

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