#AF2D9F#AF2D9F

#AF2D9F is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.205 H 333.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9F
RGBrgb(175, 45, 159)
HSLhsl(307, 59%, 43%)
HSVhsv(307, 74%, 69%)
CMYKcmyk(0%, 74.3%, 9.1%, 31.4%)
CIE-LABlab(43.50, 63.36, -33.22)
CIE-LCHlch(43.50, 71.54, 332.33°)
OKLaboklab(54% 0.1834 -0.0911)
OKLCHoklch(54% 0.205 333.6)
XYZxyz(24.8758, 13.4961, 34.0890)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9F #2DAF3D
analogous
#7E2DAF #AF2D9F #AF2D5E
triadic
#AF2D9F #9FAF2D #2D9FAF
tetradic
#AF2D9F #AF7E2D #2DAF3D #2D5EAF
square
#AF2D9F #AF7E2D #2DAF3D #2D5EAF
split-complementary
#AF2D9F #5EAF2D #2DAF7E
monochromatic
#4E1447 #7E2073 #AF2D9F #D049C0 #DD7AD1

Accessibility & contrast

On white

5.68
#AF2D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9F
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9F#FFFFFF#000000##FFFFFF
##AF2D9F1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295BA2
Deuteranopia (green-blind)
#596D9C
Tritanopia (blue-blind)
#B73A63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2d9f;
/* rgb */ color: rgb(175, 45, 159);
/* oklch */ color: oklch(54.0% 0.205 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb73bc',
    500: '#af2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9f;
$custom-light: #cb73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9f",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 307.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54004,
    "c": 0.2048,
    "h": 333.6
  },
  "luminance": 0.13494
}

Semantic roles & 50–950 ramp

primary
#AF2D9F
secondary
#73C57D
accent
#E25946
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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