#AF2BAB#AF2BAB

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

Color values

HEX#AF2BAB
RGBrgb(175, 43, 171)
HSLhsl(302, 61%, 43%)
HSVhsv(302, 75%, 69%)
CMYKcmyk(0%, 75.4%, 2.3%, 31.4%)
CIE-LABlab(43.92, 65.85, -39.71)
CIE-LCHlch(43.92, 76.89, 328.91°)
OKLaboklab(54.51% 0.1856 -0.1098)
OKLCHoklch(54.51% 0.216 329.4)
XYZxyz(25.8936, 13.7840, 39.8170)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BAB #2BAF2F
analogous
#712BAF #AF2BAB #AF2B69
triadic
#AF2BAB #ABAF2B #2BABAF
tetradic
#AF2BAB #AF712B #2BAF2F #2B69AF
square
#AF2BAB #AF712B #2BAF2F #2B69AF
split-complementary
#AF2BAB #69AF2B #2BAF71
monochromatic
#4D134B #7E1F7B #AF2BAB #D146CD #DE77DA

Accessibility & contrast

On white

5.59
#AF2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2BAB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BAB#FFFFFF#000000##FFFFFF
##AF2BAB1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAE
Deuteranopia (green-blind)
#526EA8
Tritanopia (blue-blind)
#B53F69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2bab;
/* rgb */ color: rgb(175, 43, 171);
/* oklch */ color: oklch(54.5% 0.216 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c4',
    500: '#af2bab',
    950: '#000000',
  },
}
SCSS
$custom: #af2bab;
$custom-light: #cb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bab",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 301.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54511,
    "c": 0.21567,
    "h": 329.4
  },
  "luminance": 0.13782
}

Semantic roles & 50–950 ramp

primary
#AF2BAB
secondary
#70C573
accent
#E44944
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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