#AF2299#AF2299

#AF2299 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.211 H 335.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF2299
RGBrgb(175, 34, 153)
HSLhsl(309, 67%, 41%)
HSVhsv(309, 81%, 69%)
CMYKcmyk(0%, 80.6%, 12.6%, 31.4%)
CIE-LABlab(42.09, 65.63, -31.82)
CIE-LCHlch(42.09, 72.94, 334.13°)
OKLaboklab(52.89% 0.1924 -0.087)
OKLCHoklch(52.89% 0.211 335.7)
XYZxyz(24.0014, 12.5602, 31.2911)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2299 #22AF38
analogous
#7E22AF #AF2299 #AF2252
triadic
#AF2299 #99AF22 #2299AF
tetradic
#AF2299 #AF7E22 #22AF38 #2252AF
square
#AF2299 #AF7E22 #22AF38 #2252AF
split-complementary
#AF2299 #52AF22 #22AF7E
monochromatic
#490E3F #7C186C #AF2299 #D836BF #E269CF

Accessibility & contrast

On white

5.98
#AF2299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2299
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2299#FFFFFF#000000##FFFFFF
##AF22991.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23569C
Deuteranopia (green-blind)
#586B96
Tritanopia (blue-blind)
#B82F5D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2299;
/* rgb */ color: rgb(175, 34, 153);
/* oklch */ color: oklch(52.9% 0.211 335.7);
Tailwind
colors: {
  custom: {
    50: '#cb6fb7',
    500: '#af2299',
    950: '#000000',
  },
}
SCSS
$custom: #af2299;
$custom-light: #cb6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2299",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 309.362,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52894,
    "c": 0.21118,
    "h": 335.7
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#AF2299
secondary
#65C874
accent
#EA583D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #AF2299

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

Preview Lab → · Contrast checker → · Palette generator →

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