#AF5182#AF5182

#AF5182 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 56.7% C 0.135 H 349.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF5182
RGBrgb(175, 81, 130)
HSLhsl(329, 37%, 50%)
HSVhsv(329, 54%, 69%)
CMYKcmyk(0%, 53.7%, 25.7%, 31.4%)
CIE-LABlab(47.77, 44.00, -9.21)
CIE-LCHlch(47.77, 44.95, 348.18°)
OKLaboklab(56.73% 0.1327 -0.024)
OKLCHoklch(56.73% 0.135 349.8)
XYZxyz(24.6517, 16.6127, 23.0230)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5182 #51AF7E
analogous
#AD51AF #AF5182 #AF5153
triadic
#AF5182 #82AF51 #5182AF
tetradic
#AF5182 #AFAD51 #51AF7E #5153AF
square
#AF5182 #AFAD51 #51AF7E #5153AF
split-complementary
#AF5182 #53AF51 #51AFAD
monochromatic
#5C2A44 #853D63 #AF5182 #C27BA0 #D6A5BE

Accessibility & contrast

On white

4.86
#AF5182 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF5182 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5182
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5182#FFFFFF#000000##FFFFFF
##AF51821.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6784
Deuteranopia (green-blind)
#757780
Tritanopia (blue-blind)
#BA4E64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af5182;
/* rgb */ color: rgb(175, 81, 130);
/* oklch */ color: oklch(56.7% 0.135 349.8);
Tailwind
colors: {
  custom: {
    50: '#c985a6',
    500: '#af5182',
    950: '#000000',
  },
}
SCSS
$custom: #af5182;
$custom-light: #c985a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5182",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 328.723,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56734,
    "c": 0.13484,
    "h": 349.8
  },
  "luminance": 0.16611
}

Semantic roles & 50–950 ramp

primary
#AF5182
secondary
#99C3AD
accent
#CD915B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF5182

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

Preview Lab → · Contrast checker → · Palette generator →

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