#AF2F7B#AF2F7B

#AF2F7B is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.5% C 0.179 H 348.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF2F7B
RGBrgb(175, 47, 123)
HSLhsl(324, 58%, 44%)
HSVhsv(324, 73%, 69%)
CMYKcmyk(0%, 73.1%, 29.7%, 31.4%)
CIE-LABlab(42.12, 57.73, -13.46)
CIE-LCHlch(42.12, 59.27, 346.88°)
OKLaboklab(52.48% 0.1759 -0.0353)
OKLCHoklch(52.48% 0.179 348.6)
XYZxyz(22.2720, 12.5795, 19.9903)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F7B #2FAF63
analogous
#A32FAF #AF2F7B #AF2F3B
triadic
#AF2F7B #7BAF2F #2F7BAF
tetradic
#AF2F7B #AFA32F #2FAF63 #2F3BAF
square
#AF2F7B #AFA32F #2FAF63 #2F3BAF
split-complementary
#AF2F7B #3BAF2F #2FAFA3
monochromatic
#4F1537 #7F2259 #AF2F7B #CF4C9A #DC7CB5

Accessibility & contrast

On white

5.97
#AF2F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF2F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F7B
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F7B#FFFFFF#000000##FFFFFF
##AF2F7B1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557D
Deuteranopia (green-blind)
#676C78
Tritanopia (blue-blind)
#BC2951
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2f7b;
/* rgb */ color: rgb(175, 47, 123);
/* oklch */ color: oklch(52.5% 0.179 348.6);
Tailwind
colors: {
  custom: {
    50: '#cb73a1',
    500: '#af2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #af2f7b;
$custom-light: #cb73a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f7b",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 324.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.17944,
    "h": 348.6
  },
  "luminance": 0.12577
}

Semantic roles & 50–950 ramp

primary
#AF2F7B
secondary
#75C495
accent
#E18547
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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