#AF2478#AF2478

#AF2478 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.5% C 0.189 H 349.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF2478
RGBrgb(175, 36, 120)
HSLhsl(324, 66%, 41%)
HSVhsv(324, 79%, 69%)
CMYKcmyk(0%, 79.4%, 31.4%, 31.4%)
CIE-LABlab(40.79, 60.81, -13.63)
CIE-LCHlch(40.79, 62.32, 347.37°)
OKLaboklab(51.47% 0.186 -0.0357)
OKLCHoklch(51.47% 0.189 349.1)
XYZxyz(21.7014, 11.7343, 18.8878)
Luminance0.1173 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2478 #24AF5B
analogous
#A124AF #AF2478 #AF2433
triadic
#AF2478 #78AF24 #2478AF
tetradic
#AF2478 #AFA124 #24AF5B #2433AF
square
#AF2478 #AFA124 #24AF5B #2433AF
split-complementary
#AF2478 #33AF24 #24AFA1
monochromatic
#490F32 #7C1A55 #AF2478 #D63A98 #E16DB3

Accessibility & contrast

On white

6.28
#AF2478 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF2478 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2478
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2478#FFFFFF#000000##FFFFFF
##AF24781.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517A
Deuteranopia (green-blind)
#656975
Tritanopia (blue-blind)
#BC1A4B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2478;
/* rgb */ color: rgb(175, 36, 120);
/* oklch */ color: oklch(51.5% 0.189 349.1);
Tailwind
colors: {
  custom: {
    50: '#cc6f9f',
    500: '#af2478',
    950: '#000000',
  },
}
SCSS
$custom: #af2478;
$custom-light: #cc6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2478",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 323.741,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.18941,
    "h": 349.1
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#AF2478
secondary
#68C78D
accent
#E9823F
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2478

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

Preview Lab → · Contrast checker → · Palette generator →

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