#AF295B#AF295B

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

Color values

HEX#AF295B
RGBrgb(175, 41, 91)
HSLhsl(338, 62%, 42%)
HSVhsv(338, 77%, 69%)
CMYKcmyk(0%, 76.6%, 48%, 31.4%)
CIE-LABlab(40.34, 56.33, 3.89)
CIE-LCHlch(40.34, 56.46, 3.95°)
OKLaboklab(50.82% 0.1726 0.0106)
OKLCHoklch(50.82% 0.173 3.5)
XYZxyz(20.3622, 11.4579, 11.0349)
Luminance0.1145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF295B #29AF7D
analogous
#AF299E #AF295B #AF3A29
triadic
#AF295B #5BAF29 #295BAF
tetradic
#AF295B #9EAF29 #29AF7D #3A29AF
square
#AF295B #9EAF29 #29AF7D #3A29AF
split-complementary
#AF295B #29AF3A #299EAF
monochromatic
#4C1227 #7D1D41 #AF295B #D34278 #DE749C

Accessibility & contrast

On white

6.38
#AF295B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF295B
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF295B#FFFFFF#000000##FFFFFF
##AF295B1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494E5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BE083F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af295b;
/* rgb */ color: rgb(175, 41, 91);
/* oklch */ color: oklch(50.8% 0.173 3.5);
Tailwind
colors: {
  custom: {
    50: '#cd7089',
    500: '#af295b',
    950: '#000000',
  },
}
SCSS
$custom: #af295b;
$custom-light: #cd7089;
$custom-dark: #000000;
JSON
{
  "hex": "#af295b",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 337.612,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50822,
    "c": 0.17287,
    "h": 3.5
  },
  "luminance": 0.11455
}

Semantic roles & 50–950 ramp

primary
#AF295B
secondary
#6EC6A5
accent
#E5A943
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF295B

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

Preview Lab → · Contrast checker → · Palette generator →

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