#AF2F78#AF2F78

#AF2F78 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.4% C 0.178 H 350.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF2F78
RGBrgb(175, 47, 120)
HSLhsl(326, 58%, 44%)
HSVhsv(326, 73%, 69%)
CMYKcmyk(0%, 73.1%, 31.4%, 31.4%)
CIE-LABlab(42.01, 57.36, -11.78)
CIE-LCHlch(42.01, 58.56, 348.40°)
OKLaboklab(52.36% 0.1752 -0.0307)
OKLCHoklch(52.36% 0.178 350.1)
XYZxyz(22.0871, 12.5056, 19.0163)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F78 #2FAF66
analogous
#A62FAF #AF2F78 #AF2F38
triadic
#AF2F78 #78AF2F #2F78AF
tetradic
#AF2F78 #AFA62F #2FAF66 #2F38AF
square
#AF2F78 #AFA62F #2FAF66 #2F38AF
split-complementary
#AF2F78 #38AF2F #2FAFA6
monochromatic
#4F1536 #7F2257 #AF2F78 #CF4C97 #DC7CB3

Accessibility & contrast

On white

6.00
#AF2F78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF2F78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F78
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F78#FFFFFF#000000##FFFFFF
##AF2F781.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2f78;
/* rgb */ color: rgb(175, 47, 120);
/* oklch */ color: oklch(52.4% 0.178 350.1);
Tailwind
colors: {
  custom: {
    50: '#cb739f',
    500: '#af2f78',
    950: '#000000',
  },
}
SCSS
$custom: #af2f78;
$custom-light: #cb739f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f78",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 325.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52358,
    "c": 0.17785,
    "h": 350.1
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#AF2F78
secondary
#75C497
accent
#E18947
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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