#AF3178#AF3178

#AF3178 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.5% C 0.175 H 350.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF3178
RGBrgb(175, 49, 120)
HSLhsl(326, 56%, 44%)
HSVhsv(326, 72%, 69%)
CMYKcmyk(0%, 72%, 31.4%, 31.4%)
CIE-LABlab(42.26, 56.66, -11.40)
CIE-LCHlch(42.26, 57.79, 348.62°)
OKLaboklab(52.54% 0.173 -0.0297)
OKLCHoklch(52.54% 0.176 350.3)
XYZxyz(22.1688, 12.6692, 19.0436)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3178 #31AF68
analogous
#A731AF #AF3178 #AF3139
triadic
#AF3178 #78AF31 #3178AF
tetradic
#AF3178 #AFA731 #31AF68 #3139AF
square
#AF3178 #AFA731 #31AF68 #3139AF
split-complementary
#AF3178 #39AF31 #31AFA7
monochromatic
#4F1636 #7F2457 #AF3178 #CE4F97 #DB7FB3

Accessibility & contrast

On white

5.94
#AF3178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF3178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3178
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3178#FFFFFF#000000##FFFFFF
##AF31781.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45557A
Deuteranopia (green-blind)
#696C75
Tritanopia (blue-blind)
#BC2A50
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af3178;
/* rgb */ color: rgb(175, 49, 120);
/* oklch */ color: oklch(52.5% 0.175 350.3);
Tailwind
colors: {
  custom: {
    50: '#cb749f',
    500: '#af3178',
    950: '#000000',
  },
}
SCSS
$custom: #af3178;
$custom-light: #cb749f;
$custom-dark: #000000;
JSON
{
  "hex": "#af3178",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 326.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52542,
    "c": 0.1755,
    "h": 350.3
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#AF3178
secondary
#78C499
accent
#E08A48
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3178

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

Preview Lab → · Contrast checker → · Palette generator →

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