#AF2E78#AF2E78

#AF2E78 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.179 H 350.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AF2E78
RGBrgb(175, 46, 120)
HSLhsl(326, 58%, 43%)
HSVhsv(326, 74%, 69%)
CMYKcmyk(0%, 73.7%, 31.4%, 31.4%)
CIE-LABlab(41.89, 57.71, -11.96)
CIE-LCHlch(41.89, 58.93, 348.29°)
OKLaboklab(52.27% 0.1763 -0.0312)
OKLCHoklch(52.27% 0.179 350)
XYZxyz(22.0475, 12.4265, 19.0032)
Luminance0.1242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E78 #2EAF65
analogous
#A52EAF #AF2E78 #AF2E38
triadic
#AF2E78 #78AF2E #2E78AF
tetradic
#AF2E78 #AFA52E #2EAF65 #2E38AF
square
#AF2E78 #AFA52E #2EAF65 #2E38AF
split-complementary
#AF2E78 #38AF2E #2EAFA5
monochromatic
#4E1536 #7F2157 #AF2E78 #D04B97 #DC7BB3

Accessibility & contrast

On white

6.03
#AF2E78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF2E78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E78
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E78#FFFFFF#000000##FFFFFF
##AF2E781.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43547A
Deuteranopia (green-blind)
#686B75
Tritanopia (blue-blind)
#BC264F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2e78;
/* rgb */ color: rgb(175, 46, 120);
/* oklch */ color: oklch(52.3% 0.179 350.0);
Tailwind
colors: {
  custom: {
    50: '#cb739f',
    500: '#af2e78',
    950: '#000000',
  },
}
SCSS
$custom: #af2e78;
$custom-light: #cb739f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e78",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 325.581,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52269,
    "c": 0.179,
    "h": 350
  },
  "luminance": 0.12424
}

Semantic roles & 50–950 ramp

primary
#AF2E78
secondary
#74C596
accent
#E28846
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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