#AF5078#AF5078

#AF5078 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.2% C 0.131 H 355.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF5078
RGBrgb(175, 80, 120)
HSLhsl(335, 37%, 50%)
HSVhsv(335, 54%, 69%)
CMYKcmyk(0%, 54.3%, 31.4%, 31.4%)
CIE-LABlab(47.25, 43.14, -3.94)
CIE-LCHlch(47.25, 43.32, 354.78°)
OKLaboklab(56.24% 0.131 -0.0098)
OKLCHoklch(56.24% 0.131 355.7)
XYZxyz(23.9391, 16.2096, 19.6337)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5078 #50AF87
analogous
#AF50A7 #AF5078 #AF5850
triadic
#AF5078 #78AF50 #5078AF
tetradic
#AF5078 #A7AF50 #50AF87 #5850AF
square
#AF5078 #A7AF50 #50AF87 #5850AF
split-complementary
#AF5078 #50AF58 #50A7AF
monochromatic
#5B2A3E #853D5B #AF5078 #C27A98 #D5A4B9

Accessibility & contrast

On white

4.95
#AF5078 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF5078 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5078
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5078#FFFFFF#000000##FFFFFF
##AF50781.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E6579
Deuteranopia (green-blind)
#777776
Tritanopia (blue-blind)
#BB4A5F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af5078;
/* rgb */ color: rgb(175, 80, 120);
/* oklch */ color: oklch(56.2% 0.131 355.7);
Tailwind
colors: {
  custom: {
    50: '#ca859e',
    500: '#af5078',
    950: '#000000',
  },
}
SCSS
$custom: #af5078;
$custom-light: #ca859e;
$custom-dark: #000000;
JSON
{
  "hex": "#af5078",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 120
  },
  "hsl": {
    "h": 334.737,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.13137,
    "h": 355.7
  },
  "luminance": 0.16207
}

Semantic roles & 50–950 ramp

primary
#AF5078
secondary
#98C3B1
accent
#CD9D5B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF5078

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

Preview Lab → · Contrast checker → · Palette generator →

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