#AF255B#AF255B

#AF255B is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.177 H 2.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF255B
RGBrgb(175, 37, 91)
HSLhsl(337, 65%, 42%)
HSVhsv(337, 79%, 69%)
CMYKcmyk(0%, 78.9%, 48%, 31.4%)
CIE-LABlab(39.91, 57.55, 3.27)
CIE-LCHlch(39.91, 57.65, 3.25°)
OKLaboklab(50.5% 0.1765 0.009)
OKLCHoklch(50.5% 0.177 2.9)
XYZxyz(20.2308, 11.1952, 10.9911)
Luminance0.1119 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF255B #25AF79
analogous
#AF25A0 #AF255B #AF3425
triadic
#AF255B #5BAF25 #255BAF
tetradic
#AF255B #A0AF25 #25AF79 #3425AF
square
#AF255B #A0AF25 #25AF79 #3425AF
split-complementary
#AF255B #25AF34 #25A0AF
monochromatic
#4A1026 #7C1A41 #AF255B #D63C78 #E06E9B

Accessibility & contrast

On white

6.48
#AF255B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#AF255B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF255B
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF255B#FFFFFF#000000##FFFFFF
##AF255B1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af255b;
/* rgb */ color: rgb(175, 37, 91);
/* oklch */ color: oklch(50.5% 0.177 2.9);
Tailwind
colors: {
  custom: {
    50: '#cd6e89',
    500: '#af255b',
    950: '#000000',
  },
}
SCSS
$custom: #af255b;
$custom-light: #cd6e89;
$custom-dark: #000000;
JSON
{
  "hex": "#af255b",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 336.522,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50503,
    "c": 0.17672,
    "h": 2.9
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#AF255B
secondary
#69C7A2
accent
#E8A640
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF255B

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

Preview Lab → · Contrast checker → · Palette generator →

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