#AF2B9F#AF2B9F

#AF2B9F is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.207 H 333.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF2B9F
RGBrgb(175, 43, 159)
HSLhsl(307, 61%, 43%)
HSVhsv(307, 75%, 69%)
CMYKcmyk(0%, 75.4%, 9.1%, 31.4%)
CIE-LABlab(43.28, 63.98, -33.56)
CIE-LCHlch(43.28, 72.25, 332.32°)
OKLaboklab(53.85% 0.1853 -0.0921)
OKLCHoklch(53.85% 0.207 333.6)
XYZxyz(24.8013, 13.3471, 34.0642)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B9F #2BAF3B
analogous
#7D2BAF #AF2B9F #AF2B5D
triadic
#AF2B9F #9FAF2B #2B9FAF
tetradic
#AF2B9F #AF7D2B #2BAF3B #2B5DAF
square
#AF2B9F #AF7D2B #2BAF3B #2B5DAF
split-complementary
#AF2B9F #5DAF2B #2BAF7D
monochromatic
#4D1346 #7E1F72 #AF2B9F #D146C1 #DE77D1

Accessibility & contrast

On white

5.72
#AF2B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B9F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B9F#FFFFFF#000000##FFFFFF
##AF2B9F1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2b9f;
/* rgb */ color: rgb(175, 43, 159);
/* oklch */ color: oklch(53.8% 0.207 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb73bc',
    500: '#af2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2b9f;
$custom-light: #cb73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b9f",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 307.273,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53846,
    "c": 0.2069,
    "h": 333.6
  },
  "luminance": 0.13345
}

Semantic roles & 50–950 ramp

primary
#AF2B9F
secondary
#70C57B
accent
#E45744
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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