#AF295F#AF295F

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

Color values

HEX#AF295F
RGBrgb(175, 41, 95)
HSLhsl(336, 62%, 42%)
HSVhsv(336, 77%, 69%)
CMYKcmyk(0%, 76.6%, 45.7%, 31.4%)
CIE-LABlab(40.46, 56.69, 1.54)
CIE-LCHlch(40.46, 56.72, 1.55°)
OKLaboklab(50.94% 0.174 0.0046)
OKLCHoklch(50.94% 0.174 1.5)
XYZxyz(20.5393, 11.5288, 11.9680)
Luminance0.1153 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF295F #29AF79
analogous
#AF29A2 #AF295F #AF3629
triadic
#AF295F #5FAF29 #295FAF
tetradic
#AF295F #A2AF29 #29AF79 #3629AF
square
#AF295F #A2AF29 #29AF79 #3629AF
split-complementary
#AF295F #29AF36 #29A2AF
monochromatic
#4C1229 #7D1D44 #AF295F #D3427D #DE749F

Accessibility & contrast

On white

6.35
#AF295F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AF295F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF295F
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF295F#FFFFFF#000000##FFFFFF
##AF295F1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484F60
Deuteranopia (green-blind)
#6C695C
Tritanopia (blue-blind)
#BE0D41
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af295f;
/* rgb */ color: rgb(175, 41, 95);
/* oklch */ color: oklch(50.9% 0.174 1.5);
Tailwind
colors: {
  custom: {
    50: '#cc708c',
    500: '#af295f',
    950: '#000000',
  },
}
SCSS
$custom: #af295f;
$custom-light: #cc708c;
$custom-dark: #000000;
JSON
{
  "hex": "#af295f",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 335.821,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.17402,
    "h": 1.5
  },
  "luminance": 0.11526
}

Semantic roles & 50–950 ramp

primary
#AF295F
secondary
#6EC6A2
accent
#E5A443
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF295F

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

Preview Lab → · Contrast checker → · Palette generator →

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