#AF298C#AF298C

#AF298C is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.196 H 340.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF298C
RGBrgb(175, 41, 140)
HSLhsl(316, 62%, 42%)
HSVhsv(316, 77%, 69%)
CMYKcmyk(0%, 76.6%, 20%, 31.4%)
CIE-LABlab(42.15, 61.87, -23.85)
CIE-LCHlch(42.15, 66.31, 338.92°)
OKLaboklab(52.73% 0.1852 -0.0643)
OKLCHoklch(52.73% 0.196 340.9)
XYZxyz(23.2065, 12.5956, 26.0149)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298C #29AF4C
analogous
#8F29AF #AF298C #AF2949
triadic
#AF298C #8CAF29 #298CAF
tetradic
#AF298C #AF8F29 #29AF4C #2949AF
square
#AF298C #AF8F29 #29AF4C #2949AF
split-complementary
#AF298C #49AF29 #29AF8F
monochromatic
#4C123D #7D1D64 #AF298C #D342AD #DE74C3

Accessibility & contrast

On white

5.97
#AF298C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF298C
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298C#FFFFFF#000000##FFFFFF
##AF298C1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#606B89
Tritanopia (blue-blind)
#BA2D58
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af298c;
/* rgb */ color: rgb(175, 41, 140);
/* oklch */ color: oklch(52.7% 0.196 340.9);
Tailwind
colors: {
  custom: {
    50: '#cb71ae',
    500: '#af298c',
    950: '#000000',
  },
}
SCSS
$custom: #af298c;
$custom-light: #cb71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af298c",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 315.672,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5273,
    "c": 0.19608,
    "h": 340.9
  },
  "luminance": 0.12593
}

Semantic roles & 50–950 ramp

primary
#AF298C
secondary
#6EC685
accent
#E56D43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF298C

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

Preview Lab → · Contrast checker → · Palette generator →

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