#AF5274#AF5274

#AF5274 is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.4% C 0.127 H 358.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF5274
RGBrgb(175, 82, 116)
HSLhsl(338, 37%, 50%)
HSVhsv(338, 53%, 69%)
CMYKcmyk(0%, 53.1%, 33.7%, 31.4%)
CIE-LABlab(47.51, 41.62, -1.14)
CIE-LCHlch(47.51, 41.63, 358.44°)
OKLaboklab(56.39% 0.1265 -0.0024)
OKLCHoklch(56.39% 0.127 358.9)
XYZxyz(23.8500, 16.4118, 18.4313)
Luminance0.1641 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5274 #52AF8D
analogous
#AF52A2 #AF5274 #AF5F52
triadic
#AF5274 #74AF52 #5274AF
tetradic
#AF5274 #A2AF52 #52AF8D #5F52AF
square
#AF5274 #A2AF52 #52AF8D #5F52AF
split-complementary
#AF5274 #52AF5F #52A2AF
monochromatic
#5C2B3D #863E58 #AF5274 #C27C96 #D6A6B7

Accessibility & contrast

On white

4.90
#AF5274 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF5274 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5274
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5274#FFFFFF#000000##FFFFFF
##AF52741.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#616675
Deuteranopia (green-blind)
#797772
Tritanopia (blue-blind)
#BC4B5F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af5274;
/* rgb */ color: rgb(175, 82, 116);
/* oklch */ color: oklch(56.4% 0.127 358.9);
Tailwind
colors: {
  custom: {
    50: '#ca869b',
    500: '#af5274',
    950: '#000000',
  },
}
SCSS
$custom: #af5274;
$custom-light: #ca869b;
$custom-dark: #000000;
JSON
{
  "hex": "#af5274",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 116
  },
  "hsl": {
    "h": 338.065,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56392,
    "c": 0.12653,
    "h": 358.9
  },
  "luminance": 0.1641
}

Semantic roles & 50–950 ramp

primary
#AF5274
secondary
#9AC3B4
accent
#CDA35B
background
#FCF8F9
surface
#F9F0F2
border
#D2CBCC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF5274

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

Preview Lab → · Contrast checker → · Palette generator →

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