#AF2581#AF2581

#AF2581 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.193 H 345.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF2581
RGBrgb(175, 37, 129)
HSLhsl(320, 65%, 42%)
HSVhsv(320, 79%, 69%)
CMYKcmyk(0%, 78.9%, 26.3%, 31.4%)
CIE-LABlab(41.26, 61.61, -18.48)
CIE-LCHlch(41.26, 64.33, 343.30°)
OKLaboklab(51.93% 0.187 -0.0492)
OKLCHoklch(51.93% 0.193 345.3)
XYZxyz(22.3042, 12.0246, 21.9110)
Luminance0.1202 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2581 #25AF53
analogous
#9825AF #AF2581 #AF253C
triadic
#AF2581 #81AF25 #2581AF
tetradic
#AF2581 #AF9825 #25AF53 #253CAF
square
#AF2581 #AF9825 #25AF53 #253CAF
split-complementary
#AF2581 #3CAF25 #25AF98
monochromatic
#4A1037 #7C1A5C #AF2581 #D63CA2 #E06EBA

Accessibility & contrast

On white

6.17
#AF2581 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF2581 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2581
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2581#FFFFFF#000000##FFFFFF
##AF25811.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#626A7E
Tritanopia (blue-blind)
#BB2251
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2581;
/* rgb */ color: rgb(175, 37, 129);
/* oklch */ color: oklch(51.9% 0.193 345.3);
Tailwind
colors: {
  custom: {
    50: '#cb6fa5',
    500: '#af2581',
    950: '#000000',
  },
}
SCSS
$custom: #af2581;
$custom-light: #cb6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2581",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 320,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.19338,
    "h": 345.3
  },
  "luminance": 0.12022
}

Semantic roles & 50–950 ramp

primary
#AF2581
secondary
#69C788
accent
#E87840
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2581

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

Preview Lab → · Contrast checker → · Palette generator →

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