#AF254B#AF254B

#AF254B is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.173 H 10.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#AF254B
RGBrgb(175, 37, 75)
HSLhsl(343, 65%, 42%)
HSVhsv(343, 79%, 69%)
CMYKcmyk(0%, 78.9%, 57.1%, 31.4%)
CIE-LABlab(39.49, 56.27, 12.84)
CIE-LCHlch(39.49, 57.72, 12.86°)
OKLaboklab(50.06% 0.1705 0.0322)
OKLCHoklch(50.06% 0.174 10.7)
XYZxyz(19.6127, 10.9480, 7.7357)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF254B #25AF89
analogous
#AF2590 #AF254B #AF4425
triadic
#AF254B #4BAF25 #254BAF
tetradic
#AF254B #90AF25 #25AF89 #4425AF
square
#AF254B #90AF25 #25AF89 #4425AF
split-complementary
#AF254B #25AF44 #2590AF
monochromatic
#4A1020 #7C1A35 #AF254B #D63C66 #E06E8E

Accessibility & contrast

On white

6.59
#AF254B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#AF254B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF254B
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF254B#FFFFFF#000000##FFFFFF
##AF254B1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4B4C
Deuteranopia (green-blind)
#6E6747
Tritanopia (blue-blind)
#C00035
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af254b;
/* rgb */ color: rgb(175, 37, 75);
/* oklch */ color: oklch(50.1% 0.173 10.7);
Tailwind
colors: {
  custom: {
    50: '#ce6e7d',
    500: '#af254b',
    950: '#000000',
  },
}
SCSS
$custom: #af254b;
$custom-light: #ce6e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#af254b",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 75
  },
  "hsl": {
    "h": 343.478,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50063,
    "c": 0.1735,
    "h": 10.7
  },
  "luminance": 0.10945
}

Semantic roles & 50–950 ramp

primary
#AF254B
secondary
#69C7AD
accent
#E8BA40
background
#FDF7F7
surface
#FBEDEE
border
#D4C8C9
text
#150809
muted
#837B7B

Preview Lab

Preview with #AF254B

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

Preview Lab → · Contrast checker → · Palette generator →

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