#AF278F#AF278F

#AF278F is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.7% C 0.200 H 339.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF278F
RGBrgb(175, 39, 143)
HSLhsl(314, 64%, 42%)
HSVhsv(314, 78%, 69%)
CMYKcmyk(0%, 77.7%, 18.3%, 31.4%)
CIE-LABlab(42.08, 62.87, -25.78)
CIE-LCHlch(42.08, 67.96, 337.70°)
OKLaboklab(52.73% 0.1874 -0.0698)
OKLCHoklch(52.73% 0.2 339.6)
XYZxyz(23.3633, 12.5505, 27.1733)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF278F #27AF47
analogous
#8B27AF #AF278F #AF274B
triadic
#AF278F #8FAF27 #278FAF
tetradic
#AF278F #AF8B27 #27AF47 #274BAF
square
#AF278F #AF8B27 #27AF47 #274BAF
split-complementary
#AF278F #4BAF27 #27AF8B
monochromatic
#4B113D #7D1C66 #AF278F #D43FB1 #DF71C5

Accessibility & contrast

On white

5.98
#AF278F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF278F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF278F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF278F#FFFFFF#000000##FFFFFF
##AF278F1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315692
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B92D59
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af278f;
/* rgb */ color: rgb(175, 39, 143);
/* oklch */ color: oklch(52.7% 0.200 339.6);
Tailwind
colors: {
  custom: {
    50: '#cb71b0',
    500: '#af278f',
    950: '#000000',
  },
}
SCSS
$custom: #af278f;
$custom-light: #cb71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af278f",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 314.118,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52725,
    "c": 0.2,
    "h": 339.6
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#AF278F
secondary
#6BC681
accent
#E76841
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF278F

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

Preview Lab → · Contrast checker → · Palette generator →

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