#AF2BAC#AF2BAC

#AF2BAC is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.216 H 329.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF2BAC
RGBrgb(175, 43, 172)
HSLhsl(301, 61%, 43%)
HSVhsv(301, 75%, 69%)
CMYKcmyk(0%, 75.4%, 1.7%, 31.4%)
CIE-LABlab(43.98, 66.01, -40.21)
CIE-LCHlch(43.98, 77.29, 328.65°)
OKLaboklab(54.57% 0.1856 -0.1113)
OKLCHoklch(54.57% 0.216 329.1)
XYZxyz(25.9892, 13.8222, 40.3209)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BAC #2BAF2E
analogous
#702BAF #AF2BAC #AF2B6A
triadic
#AF2BAC #ACAF2B #2BACAF
tetradic
#AF2BAC #AF702B #2BAF2E #2B6AAF
square
#AF2BAC #AF702B #2BAF2E #2B6AAF
split-complementary
#AF2BAC #6AAF2B #2BAF70
monochromatic
#4D134B #7E1F7C #AF2BAC #D146CE #DE77DB

Accessibility & contrast

On white

5.58
#AF2BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BAC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BAC#FFFFFF#000000##FFFFFF
##AF2BAC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125DAF
Deuteranopia (green-blind)
#526EA9
Tritanopia (blue-blind)
#B53F6A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2bac;
/* rgb */ color: rgb(175, 43, 172);
/* oklch */ color: oklch(54.6% 0.216 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c5',
    500: '#af2bac',
    950: '#000000',
  },
}
SCSS
$custom: #af2bac;
$custom-light: #cb73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bac",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 301.364,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.21642,
    "h": 329.1
  },
  "luminance": 0.1382
}

Semantic roles & 50–950 ramp

primary
#AF2BAC
secondary
#70C572
accent
#E44844
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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