#AF278D#AF278D

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

Color values

HEX#AF278D
RGBrgb(175, 39, 141)
HSLhsl(315, 64%, 42%)
HSVhsv(315, 78%, 69%)
CMYKcmyk(0%, 77.7%, 19.4%, 31.4%)
CIE-LABlab(41.99, 62.60, -24.71)
CIE-LCHlch(41.99, 67.30, 338.46°)
OKLaboklab(52.63% 0.1872 -0.0667)
OKLCHoklch(52.63% 0.199 340.4)
XYZxyz(23.2131, 12.4904, 26.3825)
Luminance0.1249 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF278D #27AF49
analogous
#8D27AF #AF278D #AF2749
triadic
#AF278D #8DAF27 #278DAF
tetradic
#AF278D #AF8D27 #27AF49 #2749AF
square
#AF278D #AF8D27 #27AF49 #2749AF
split-complementary
#AF278D #49AF27 #27AF8D
monochromatic
#4B113C #7D1C65 #AF278D #D43FAF #DF71C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF278D#FFFFFF#000000##FFFFFF
##AF278D1.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)
#325590
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#BA2B58
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af278d;
/* rgb */ color: rgb(175, 39, 141);
/* oklch */ color: oklch(52.6% 0.199 340.4);
Tailwind
colors: {
  custom: {
    50: '#cb70ae',
    500: '#af278d',
    950: '#000000',
  },
}
SCSS
$custom: #af278d;
$custom-light: #cb70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af278d",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 315,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52628,
    "c": 0.19871,
    "h": 340.4
  },
  "luminance": 0.12488
}

Semantic roles & 50–950 ramp

primary
#AF278D
secondary
#6BC682
accent
#E76B41
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF278D

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

Preview Lab → · Contrast checker → · Palette generator →

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