#AF5097#AF5097

#AF5097 is a mid, vivid pink. Relative luminance 0.171; OKLCH L 57.4% C 0.151 H 338.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF5097
RGBrgb(175, 80, 151)
HSLhsl(315, 37%, 50%)
HSVhsv(315, 54%, 69%)
CMYKcmyk(0%, 54.3%, 13.7%, 31.4%)
CIE-LABlab(48.37, 47.67, -20.86)
CIE-LCHlch(48.37, 52.04, 336.37°)
OKLaboklab(57.44% 0.1398 -0.0562)
OKLCHoklch(57.44% 0.151 338.1)
XYZxyz(26.1341, 17.0876, 31.1939)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5097 #50AF68
analogous
#9850AF #AF5097 #AF5067
triadic
#AF5097 #97AF50 #5097AF
tetradic
#AF5097 #AF9850 #50AF68 #5067AF
square
#AF5097 #AF9850 #50AF68 #5067AF
split-complementary
#AF5097 #67AF50 #50AF98
monochromatic
#5B2A4F #853D73 #AF5097 #C27AB0 #D5A4C9

Accessibility & contrast

On white

4.75
#AF5097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF5097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5097
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5097#FFFFFF#000000##FFFFFF
##AF50971.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A99
Deuteranopia (green-blind)
#6E7894
Tritanopia (blue-blind)
#B8536D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af5097;
/* rgb */ color: rgb(175, 80, 151);
/* oklch */ color: oklch(57.4% 0.151 338.1);
Tailwind
colors: {
  custom: {
    50: '#c985b5',
    500: '#af5097',
    950: '#000000',
  },
}
SCSS
$custom: #af5097;
$custom-light: #c985b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5097",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 315.158,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57441,
    "c": 0.15065,
    "h": 338.1
  },
  "luminance": 0.17086
}

Semantic roles & 50–950 ramp

primary
#AF5097
secondary
#98C3A3
accent
#CD785B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5097

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

Preview Lab → · Contrast checker → · Palette generator →

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