#AF2899#AF2899

#AF2899 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.206 H 335.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF2899
RGBrgb(175, 40, 153)
HSLhsl(310, 63%, 42%)
HSVhsv(310, 77%, 69%)
CMYKcmyk(0%, 77.1%, 12.6%, 31.4%)
CIE-LABlab(42.66, 63.99, -30.93)
CIE-LCHlch(42.66, 71.08, 334.21°)
OKLaboklab(53.3% 0.1876 -0.0844)
OKLCHoklch(53.3% 0.206 335.8)
XYZxyz(24.1881, 12.9337, 31.3534)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2899 #28AF3E
analogous
#8228AF #AF2899 #AF2855
triadic
#AF2899 #99AF28 #2899AF
tetradic
#AF2899 #AF8228 #28AF3E #2855AF
square
#AF2899 #AF8228 #28AF3E #2855AF
split-complementary
#AF2899 #55AF28 #28AF82
monochromatic
#4B1142 #7D1D6D #AF2899 #D441BC #DF73CD

Accessibility & contrast

On white

5.86
#AF2899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2899
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2899#FFFFFF#000000##FFFFFF
##AF28991.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589C
Deuteranopia (green-blind)
#5A6C96
Tritanopia (blue-blind)
#B8335F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2899;
/* rgb */ color: rgb(175, 40, 153);
/* oklch */ color: oklch(53.3% 0.206 335.8);
Tailwind
colors: {
  custom: {
    50: '#cb71b7',
    500: '#af2899',
    950: '#000000',
  },
}
SCSS
$custom: #af2899;
$custom-light: #cb71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2899",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 309.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53303,
    "c": 0.20569,
    "h": 335.8
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#AF2899
secondary
#6DC67B
accent
#E65D42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2899

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

Preview Lab → · Contrast checker → · Palette generator →

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