#AF257D#AF257D

#AF257D is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.191 H 347.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF257D
RGBrgb(175, 37, 125)
HSLhsl(322, 65%, 42%)
HSVhsv(322, 79%, 69%)
CMYKcmyk(0%, 78.9%, 28.6%, 31.4%)
CIE-LABlab(41.09, 61.12, -16.27)
CIE-LCHlch(41.09, 63.25, 345.09°)
OKLaboklab(51.75% 0.1862 -0.043)
OKLCHoklch(51.75% 0.191 347)
XYZxyz(22.0435, 11.9203, 20.5381)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF257D #25AF57
analogous
#9C25AF #AF257D #AF2538
triadic
#AF257D #7DAF25 #257DAF
tetradic
#AF257D #AF9C25 #25AF57 #2538AF
square
#AF257D #AF9C25 #25AF57 #2538AF
split-complementary
#AF257D #38AF25 #25AF9C
monochromatic
#4A1035 #7C1A59 #AF257D #D63C9E #E06EB7

Accessibility & contrast

On white

6.21
#AF257D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF257D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF257D
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF257D#FFFFFF#000000##FFFFFF
##AF257D1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#64697A
Tritanopia (blue-blind)
#BC1F4E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af257d;
/* rgb */ color: rgb(175, 37, 125);
/* oklch */ color: oklch(51.8% 0.191 347.0);
Tailwind
colors: {
  custom: {
    50: '#cb6fa2',
    500: '#af257d',
    950: '#000000',
  },
}
SCSS
$custom: #af257d;
$custom-light: #cb6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#af257d",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 321.739,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51752,
    "c": 0.19113,
    "h": 347
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#AF257D
secondary
#69C78B
accent
#E87D40
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF257D

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

Preview Lab → · Contrast checker → · Palette generator →

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