#AF337E#AF337E

#AF337E is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.0% C 0.176 H 347.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF337E
RGBrgb(175, 51, 126)
HSLhsl(324, 55%, 44%)
HSVhsv(324, 71%, 69%)
CMYKcmyk(0%, 70.9%, 28%, 31.4%)
CIE-LABlab(42.75, 56.67, -14.35)
CIE-LCHlch(42.75, 58.46, 345.79°)
OKLaboklab(52.97% 0.1722 -0.0378)
OKLCHoklch(52.97% 0.176 347.6)
XYZxyz(22.6300, 12.9904, 21.0503)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF337E #33AF64
analogous
#A233AF #AF337E #AF3340
triadic
#AF337E #7EAF33 #337EAF
tetradic
#AF337E #AFA233 #33AF64 #3340AF
square
#AF337E #AFA233 #33AF64 #3340AF
split-complementary
#AF337E #40AF33 #33AFA2
monochromatic
#50173A #80255C #AF337E #CD529C #DB82B7

Accessibility & contrast

On white

5.84
#AF337E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF337E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF337E
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF337E#FFFFFF#000000##FFFFFF
##AF337E1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445780
Deuteranopia (green-blind)
#686D7B
Tritanopia (blue-blind)
#BB2F54
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af337e;
/* rgb */ color: rgb(175, 51, 126);
/* oklch */ color: oklch(53.0% 0.176 347.6);
Tailwind
colors: {
  custom: {
    50: '#cb75a3',
    500: '#af337e',
    950: '#000000',
  },
}
SCSS
$custom: #af337e;
$custom-light: #cb75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af337e",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 323.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52974,
    "c": 0.1763,
    "h": 347.6
  },
  "luminance": 0.12988
}

Semantic roles & 50–950 ramp

primary
#AF337E
secondary
#7AC497
accent
#DE844A
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF337E

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

Preview Lab → · Contrast checker → · Palette generator →

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