#AF298D#AF298D

#AF298D is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.8% C 0.197 H 340.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF298D
RGBrgb(175, 41, 141)
HSLhsl(315, 62%, 42%)
HSVhsv(315, 77%, 69%)
CMYKcmyk(0%, 76.6%, 19.4%, 31.4%)
CIE-LABlab(42.19, 62.01, -24.39)
CIE-LCHlch(42.19, 66.63, 338.53°)
OKLaboklab(52.78% 0.1854 -0.0658)
OKLCHoklch(52.78% 0.197 340.5)
XYZxyz(23.2806, 12.6253, 26.4050)
Luminance0.1262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298D #29AF4B
analogous
#8E29AF #AF298D #AF294A
triadic
#AF298D #8DAF29 #298DAF
tetradic
#AF298D #AF8E29 #29AF4B #294AAF
square
#AF298D #AF8E29 #29AF4B #294AAF
split-complementary
#AF298D #4AAF29 #29AF8E
monochromatic
#4C123D #7D1D65 #AF298D #D342AE #DE74C3

Accessibility & contrast

On white

5.96
#AF298D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF298D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF298D
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298D#FFFFFF#000000##FFFFFF
##AF298D1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345690
Deuteranopia (green-blind)
#606B8A
Tritanopia (blue-blind)
#BA2D58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af298d;
/* rgb */ color: rgb(175, 41, 141);
/* oklch */ color: oklch(52.8% 0.197 340.5);
Tailwind
colors: {
  custom: {
    50: '#cb71ae',
    500: '#af298d',
    950: '#000000',
  },
}
SCSS
$custom: #af298d;
$custom-light: #cb71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af298d",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 315.224,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52778,
    "c": 0.19671,
    "h": 340.5
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

primary
#AF298D
secondary
#6EC684
accent
#E56C43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF298D

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

Preview Lab → · Contrast checker → · Palette generator →

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