#AF257F#AF257F

#AF257F is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.192 H 346.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AF257F
RGBrgb(175, 37, 127)
HSLhsl(321, 65%, 42%)
HSVhsv(321, 79%, 69%)
CMYKcmyk(0%, 78.9%, 27.4%, 31.4%)
CIE-LABlab(41.17, 61.37, -17.38)
CIE-LCHlch(41.17, 63.78, 344.19°)
OKLaboklab(51.84% 0.1866 -0.0461)
OKLCHoklch(51.84% 0.192 346.1)
XYZxyz(22.1726, 11.9719, 21.2177)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF257F #25AF55
analogous
#9A25AF #AF257F #AF253A
triadic
#AF257F #7FAF25 #257FAF
tetradic
#AF257F #AF9A25 #25AF55 #253AAF
square
#AF257F #AF9A25 #25AF55 #253AAF
split-complementary
#AF257F #3AAF25 #25AF9A
monochromatic
#4A1036 #7C1A5A #AF257F #D63CA0 #E06EB9

Accessibility & contrast

On white

6.19
#AF257F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AF257F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF257F
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF257F#FFFFFF#000000##FFFFFF
##AF257F1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#63697C
Tritanopia (blue-blind)
#BB2150
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af257f;
/* rgb */ color: rgb(175, 37, 127);
/* oklch */ color: oklch(51.8% 0.192 346.1);
Tailwind
colors: {
  custom: {
    50: '#cb6fa4',
    500: '#af257f',
    950: '#000000',
  },
}
SCSS
$custom: #af257f;
$custom-light: #cb6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#af257f",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 320.87,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51839,
    "c": 0.19225,
    "h": 346.1
  },
  "luminance": 0.11969
}

Semantic roles & 50–950 ramp

primary
#AF257F
secondary
#69C78A
accent
#E87A40
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF257F

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

Preview Lab → · Contrast checker → · Palette generator →

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