#AF298E#AF298E

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

Color values

HEX#AF298E
RGBrgb(175, 41, 142)
HSLhsl(315, 62%, 42%)
HSVhsv(315, 77%, 69%)
CMYKcmyk(0%, 76.6%, 18.9%, 31.4%)
CIE-LABlab(42.24, 62.14, -24.93)
CIE-LCHlch(42.24, 66.96, 338.14°)
OKLaboklab(52.83% 0.1855 -0.0673)
OKLCHoklch(52.83% 0.197 340.1)
XYZxyz(23.3553, 12.6552, 26.7986)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298E #29AF4A
analogous
#8D29AF #AF298E #AF294B
triadic
#AF298E #8EAF29 #298EAF
tetradic
#AF298E #AF8D29 #29AF4A #294BAF
square
#AF298E #AF8D29 #29AF4A #294BAF
split-complementary
#AF298E #4BAF29 #29AF8D
monochromatic
#4C123E #7D1D66 #AF298E #D342AF #DE74C4

Accessibility & contrast

On white

5.95
#AF298E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF298E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF298E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298E#FFFFFF#000000##FFFFFF
##AF298E1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335691
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#BA2E59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af298e;
/* rgb */ color: rgb(175, 41, 142);
/* oklch */ color: oklch(52.8% 0.197 340.1);
Tailwind
colors: {
  custom: {
    50: '#cb71af',
    500: '#af298e',
    950: '#000000',
  },
}
SCSS
$custom: #af298e;
$custom-light: #cb71af;
$custom-dark: #000000;
JSON
{
  "hex": "#af298e",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 314.776,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52826,
    "c": 0.19735,
    "h": 340.1
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF298E

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

Preview Lab → · Contrast checker → · Palette generator →

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