#AF2C9F#AF2C9F

#AF2C9F is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.206 H 333.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF2C9F
RGBrgb(175, 44, 159)
HSLhsl(307, 60%, 43%)
HSVhsv(307, 75%, 69%)
CMYKcmyk(0%, 74.9%, 9.1%, 31.4%)
CIE-LABlab(43.39, 63.67, -33.39)
CIE-LCHlch(43.39, 71.90, 332.33°)
OKLaboklab(53.92% 0.1844 -0.0916)
OKLCHoklch(53.92% 0.206 333.6)
XYZxyz(24.8381, 13.4207, 34.0765)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9F #2CAF3C
analogous
#7D2CAF #AF2C9F #AF2C5E
triadic
#AF2C9F #9FAF2C #2C9FAF
tetradic
#AF2C9F #AF7D2C #2CAF3C #2C5EAF
square
#AF2C9F #AF7D2C #2CAF3C #2C5EAF
split-complementary
#AF2C9F #5EAF2C #2CAF7D
monochromatic
#4D1346 #7E2073 #AF2C9F #D147C0 #DD78D1

Accessibility & contrast

On white

5.70
#AF2C9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2C9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C9F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C9F#FFFFFF#000000##FFFFFF
##AF2C9F1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA2
Deuteranopia (green-blind)
#596D9C
Tritanopia (blue-blind)
#B73963
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2c9f;
/* rgb */ color: rgb(175, 44, 159);
/* oklch */ color: oklch(53.9% 0.206 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb73bc',
    500: '#af2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9f;
$custom-light: #cb73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9f",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 307.328,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53924,
    "c": 0.20585,
    "h": 333.6
  },
  "luminance": 0.13419
}

Semantic roles & 50–950 ramp

primary
#AF2C9F
secondary
#72C57C
accent
#E35845
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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