#AF5295#AF5295

#AF5295 is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.6% C 0.146 H 339.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF5295
RGBrgb(175, 82, 149)
HSLhsl(317, 37%, 50%)
HSVhsv(317, 53%, 69%)
CMYKcmyk(0%, 53.1%, 14.9%, 31.4%)
CIE-LABlab(48.66, 46.37, -19.23)
CIE-LCHlch(48.66, 50.20, 337.48°)
OKLaboklab(57.63% 0.1364 -0.0516)
OKLCHoklch(57.63% 0.146 339.3)
XYZxyz(26.1216, 17.3204, 30.3953)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5295 #52AF6C
analogous
#9A52AF #AF5295 #AF5266
triadic
#AF5295 #95AF52 #5295AF
tetradic
#AF5295 #AF9A52 #52AF6C #5266AF
square
#AF5295 #AF9A52 #52AF6C #5266AF
split-complementary
#AF5295 #66AF52 #52AF9A
monochromatic
#5C2B4E #863E72 #AF5295 #C27CAF #D6A6C8

Accessibility & contrast

On white

4.70
#AF5295 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF5295 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5295
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5295#FFFFFF#000000##FFFFFF
##AF52951.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566A97
Deuteranopia (green-blind)
#707993
Tritanopia (blue-blind)
#B8546D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af5295;
/* rgb */ color: rgb(175, 82, 149);
/* oklch */ color: oklch(57.6% 0.146 339.3);
Tailwind
colors: {
  custom: {
    50: '#c986b4',
    500: '#af5295',
    950: '#000000',
  },
}
SCSS
$custom: #af5295;
$custom-light: #c986b4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5295",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 149
  },
  "hsl": {
    "h": 316.774,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5763,
    "c": 0.14584,
    "h": 339.3
  },
  "luminance": 0.17318
}

Semantic roles & 50–950 ramp

primary
#AF5295
secondary
#9AC3A5
accent
#CD7B5B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5295

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

Preview Lab → · Contrast checker → · Palette generator →

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