#AF278C#AF278C

#AF278C is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.198 H 340.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF278C
RGBrgb(175, 39, 140)
HSLhsl(315, 64%, 42%)
HSVhsv(315, 78%, 69%)
CMYKcmyk(0%, 77.7%, 20%, 31.4%)
CIE-LABlab(41.94, 62.47, -24.17)
CIE-LCHlch(41.94, 66.98, 338.85°)
OKLaboklab(52.58% 0.1871 -0.0652)
OKLCHoklch(52.58% 0.198 340.8)
XYZxyz(23.1391, 12.4608, 25.9924)
Luminance0.1246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF278C #27AF4A
analogous
#8E27AF #AF278C #AF2748
triadic
#AF278C #8CAF27 #278CAF
tetradic
#AF278C #AF8E27 #27AF4A #2748AF
square
#AF278C #AF8E27 #27AF4A #2748AF
split-complementary
#AF278C #48AF27 #27AF8E
monochromatic
#4B113C #7D1C64 #AF278C #D43FAE #DF71C3

Accessibility & contrast

On white

6.01
#AF278C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF278C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF278C
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF278C#FFFFFF#000000##FFFFFF
##AF278C1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558F
Deuteranopia (green-blind)
#5F6B89
Tritanopia (blue-blind)
#BA2B57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af278c;
/* rgb */ color: rgb(175, 39, 140);
/* oklch */ color: oklch(52.6% 0.198 340.8);
Tailwind
colors: {
  custom: {
    50: '#cb70ae',
    500: '#af278c',
    950: '#000000',
  },
}
SCSS
$custom: #af278c;
$custom-light: #cb70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af278c",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 315.441,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52579,
    "c": 0.19808,
    "h": 340.8
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#AF278C
secondary
#6BC683
accent
#E76C41
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF278C

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

Preview Lab → · Contrast checker → · Palette generator →

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