#AF2297#AF2297

#AF2297 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.8% C 0.210 H 336.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF2297
RGBrgb(175, 34, 151)
HSLhsl(310, 67%, 41%)
HSVhsv(310, 81%, 69%)
CMYKcmyk(0%, 80.6%, 13.7%, 31.4%)
CIE-LABlab(41.99, 65.35, -30.77)
CIE-LCHlch(41.99, 72.23, 334.78°)
OKLaboklab(52.79% 0.1923 -0.084)
OKLCHoklch(52.79% 0.21 336.4)
XYZxyz(23.8376, 12.4947, 30.4284)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2297 #22AF3A
analogous
#8022AF #AF2297 #AF2250
triadic
#AF2297 #97AF22 #2297AF
tetradic
#AF2297 #AF8022 #22AF3A #2250AF
square
#AF2297 #AF8022 #22AF3A #2250AF
split-complementary
#AF2297 #50AF22 #22AF80
monochromatic
#490E3F #7C186B #AF2297 #D836BC #E269CD

Accessibility & contrast

On white

6.00
#AF2297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF2297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2297
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2297#FFFFFF#000000##FFFFFF
##AF22971.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#596A94
Tritanopia (blue-blind)
#B82E5C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2297;
/* rgb */ color: rgb(175, 34, 151);
/* oklch */ color: oklch(52.8% 0.210 336.4);
Tailwind
colors: {
  custom: {
    50: '#cb6fb6',
    500: '#af2297',
    950: '#000000',
  },
}
SCSS
$custom: #af2297;
$custom-light: #cb6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2297",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 310.213,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52789,
    "c": 0.20984,
    "h": 336.4
  },
  "luminance": 0.12492
}

Semantic roles & 50–950 ramp

primary
#AF2297
secondary
#65C876
accent
#EA5B3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #AF2297

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

Preview Lab → · Contrast checker → · Palette generator →

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