#AF2B78#AF2B78

#AF2B78 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.0% C 0.182 H 349.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF2B78
RGBrgb(175, 43, 120)
HSLhsl(325, 61%, 43%)
HSVhsv(325, 75%, 69%)
CMYKcmyk(0%, 75.4%, 31.4%, 31.4%)
CIE-LABlab(41.53, 58.70, -12.50)
CIE-LCHlch(41.53, 60.02, 347.98°)
OKLaboklab(52.01% 0.1794 -0.0327)
OKLCHoklch(52.01% 0.182 349.7)
XYZxyz(21.9344, 12.2003, 18.9655)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B78 #2BAF62
analogous
#A42BAF #AF2B78 #AF2B36
triadic
#AF2B78 #78AF2B #2B78AF
tetradic
#AF2B78 #AFA42B #2BAF62 #2B36AF
square
#AF2B78 #AFA42B #2BAF62 #2B36AF
split-complementary
#AF2B78 #36AF2B #2BAFA4
monochromatic
#4D1335 #7E1F56 #AF2B78 #D14697 #DE77B3

Accessibility & contrast

On white

6.11
#AF2B78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF2B78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B78
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B78#FFFFFF#000000##FFFFFF
##AF2B781.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41537A
Deuteranopia (green-blind)
#676A75
Tritanopia (blue-blind)
#BC234E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2b78;
/* rgb */ color: rgb(175, 43, 120);
/* oklch */ color: oklch(52.0% 0.182 349.7);
Tailwind
colors: {
  custom: {
    50: '#cb719f',
    500: '#af2b78',
    950: '#000000',
  },
}
SCSS
$custom: #af2b78;
$custom-light: #cb719f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b78",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 325,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5201,
    "c": 0.18234,
    "h": 349.7
  },
  "luminance": 0.12198
}

Semantic roles & 50–950 ramp

primary
#AF2B78
secondary
#70C594
accent
#E48744
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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