#AF4078#AF4078

#AF4078 is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.1% C 0.156 H 352.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AF4078
RGBrgb(175, 64, 120)
HSLhsl(330, 46%, 47%)
HSVhsv(330, 63%, 69%)
CMYKcmyk(0%, 63.4%, 31.4%, 31.4%)
CIE-LABlab(44.43, 50.66, -8.13)
CIE-LCHlch(44.43, 51.31, 350.88°)
OKLaboklab(54.14% 0.1543 -0.0209)
OKLCHoklch(54.14% 0.156 352.3)
XYZxyz(22.9039, 14.1392, 19.2886)
Luminance0.1414 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4078 #40AF77
analogous
#AF40AF #AF4078 #AF4040
triadic
#AF4078 #78AF40 #4078AF
tetradic
#AF4078 #AFAF40 #40AF77 #4040AF
square
#AF4078 #AFAF40 #40AF77 #4040AF
split-complementary
#AF4078 #40AF40 #40AFAF
monochromatic
#551F3B #823059 #AF4078 #C76597 #D792B5

Accessibility & contrast

On white

5.49
#AF4078 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF4078 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4078
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4078#FFFFFF#000000##FFFFFF
##AF40781.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505C7A
Deuteranopia (green-blind)
#6F7075
Tritanopia (blue-blind)
#BC3A57
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af4078;
/* rgb */ color: rgb(175, 64, 120);
/* oklch */ color: oklch(54.1% 0.156 352.3);
Tailwind
colors: {
  custom: {
    50: '#ca7b9f',
    500: '#af4078',
    950: '#000000',
  },
}
SCSS
$custom: #af4078;
$custom-light: #ca7b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#af4078",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 120
  },
  "hsl": {
    "h": 329.73,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5414,
    "c": 0.15567,
    "h": 352.3
  },
  "luminance": 0.14137
}

Semantic roles & 50–950 ramp

primary
#AF4078
secondary
#88C3A5
accent
#D69352
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4078

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

Preview Lab → · Contrast checker → · Palette generator →

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