#AF245B#AF245B

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

Color values

HEX#AF245B
RGBrgb(175, 36, 91)
HSLhsl(336, 66%, 41%)
HSVhsv(336, 79%, 69%)
CMYKcmyk(0%, 79.4%, 48%, 31.4%)
CIE-LABlab(39.80, 57.85, 3.12)
CIE-LCHlch(39.80, 57.93, 3.09°)
OKLaboklab(50.43% 0.1774 0.0086)
OKLCHoklch(50.43% 0.178 2.8)
XYZxyz(20.2001, 11.1338, 10.9809)
Luminance0.1113 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF245B #24AF78
analogous
#AF24A1 #AF245B #AF3324
triadic
#AF245B #5BAF24 #245BAF
tetradic
#AF245B #A1AF24 #24AF78 #3324AF
square
#AF245B #A1AF24 #24AF78 #3324AF
split-complementary
#AF245B #24AF33 #24A1AF
monochromatic
#490F26 #7C1A41 #AF245B #D63A78 #E16D9B

Accessibility & contrast

On white

6.51
#AF245B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF245B
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF245B#FFFFFF#000000##FFFFFF
##AF245B1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474D5C
Deuteranopia (green-blind)
#6C6758
Tritanopia (blue-blind)
#BF003D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af245b;
/* rgb */ color: rgb(175, 36, 91);
/* oklch */ color: oklch(50.4% 0.178 2.8);
Tailwind
colors: {
  custom: {
    50: '#cd6e89',
    500: '#af245b',
    950: '#000000',
  },
}
SCSS
$custom: #af245b;
$custom-light: #cd6e89;
$custom-dark: #000000;
JSON
{
  "hex": "#af245b",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 91
  },
  "hsl": {
    "h": 336.259,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.17764,
    "h": 2.8
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF245B

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

Preview Lab → · Contrast checker → · Palette generator →

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