#AF3181#AF3181

#AF3181 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.180 H 346.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AF3181
RGBrgb(175, 49, 129)
HSLhsl(322, 56%, 44%)
HSVhsv(322, 72%, 69%)
CMYKcmyk(0%, 72%, 26.3%, 31.4%)
CIE-LABlab(42.61, 57.78, -16.41)
CIE-LCHlch(42.61, 60.06, 344.14°)
OKLaboklab(52.91% 0.1751 -0.0435)
OKLCHoklch(52.91% 0.18 346.1)
XYZxyz(22.7409, 12.8980, 22.0566)
Luminance0.1290 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3181 #31AF5F
analogous
#9E31AF #AF3181 #AF3142
triadic
#AF3181 #81AF31 #3181AF
tetradic
#AF3181 #AF9E31 #31AF5F #3142AF
square
#AF3181 #AF9E31 #31AF5F #3142AF
split-complementary
#AF3181 #42AF31 #31AF9E
monochromatic
#4F163B #7F245E #AF3181 #CE4FA0 #DB7FBA

Accessibility & contrast

On white

5.87
#AF3181 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF3181 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3181
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3181#FFFFFF#000000##FFFFFF
##AF31811.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415783
Deuteranopia (green-blind)
#666C7E
Tritanopia (blue-blind)
#BB2E55
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af3181;
/* rgb */ color: rgb(175, 49, 129);
/* oklch */ color: oklch(52.9% 0.180 346.1);
Tailwind
colors: {
  custom: {
    50: '#cb74a5',
    500: '#af3181',
    950: '#000000',
  },
}
SCSS
$custom: #af3181;
$custom-light: #cb74a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3181",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 321.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52911,
    "c": 0.18045,
    "h": 346.1
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#AF3181
secondary
#78C494
accent
#E07F48
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF3181

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

Preview Lab → · Contrast checker → · Palette generator →

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