#AF295C#AF295C

#AF295C is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.173 H 3.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF295C
RGBrgb(175, 41, 92)
HSLhsl(337, 62%, 42%)
HSVhsv(337, 77%, 69%)
CMYKcmyk(0%, 76.6%, 47.4%, 31.4%)
CIE-LABlab(40.37, 56.42, 3.30)
CIE-LCHlch(40.37, 56.52, 3.35°)
OKLaboklab(50.85% 0.1729 0.0091)
OKLCHoklch(50.85% 0.173 3)
XYZxyz(20.4056, 11.4753, 11.2636)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF295C #29AF7C
analogous
#AF299F #AF295C #AF3929
triadic
#AF295C #5CAF29 #295CAF
tetradic
#AF295C #9FAF29 #29AF7C #3929AF
square
#AF295C #9FAF29 #29AF7C #3929AF
split-complementary
#AF295C #29AF39 #299FAF
monochromatic
#4C1228 #7D1D42 #AF295C #D34279 #DE749C

Accessibility & contrast

On white

6.37
#AF295C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF295C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF295C
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF295C#FFFFFF#000000##FFFFFF
##AF295C1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494E5D
Deuteranopia (green-blind)
#6D6959
Tritanopia (blue-blind)
#BE093F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af295c;
/* rgb */ color: rgb(175, 41, 92);
/* oklch */ color: oklch(50.9% 0.173 3.0);
Tailwind
colors: {
  custom: {
    50: '#cd7089',
    500: '#af295c',
    950: '#000000',
  },
}
SCSS
$custom: #af295c;
$custom-light: #cd7089;
$custom-dark: #000000;
JSON
{
  "hex": "#af295c",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 92
  },
  "hsl": {
    "h": 337.164,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50852,
    "c": 0.17314,
    "h": 3
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#AF295C
secondary
#6EC6A4
accent
#E5A743
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF295C

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

Preview Lab → · Contrast checker → · Palette generator →

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