#AF2FAB#AF2FAB

#AF2FAB is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.212 H 329.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF2FAB
RGBrgb(175, 47, 171)
HSLhsl(302, 58%, 44%)
HSVhsv(302, 73%, 69%)
CMYKcmyk(0%, 73.1%, 2.3%, 31.4%)
CIE-LABlab(44.36, 64.59, -39.01)
CIE-LCHlch(44.36, 75.46, 328.87°)
OKLaboklab(54.83% 0.182 -0.1078)
OKLCHoklch(54.83% 0.212 329.4)
XYZxyz(26.0462, 14.0892, 39.8678)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FAB #2FAF33
analogous
#732FAF #AF2FAB #AF2F6B
triadic
#AF2FAB #ABAF2F #2FABAF
tetradic
#AF2FAB #AF732F #2FAF33 #2F6BAF
square
#AF2FAB #AF732F #2FAF33 #2F6BAF
split-complementary
#AF2FAB #6BAF2F #2FAF73
monochromatic
#4F154D #7F227C #AF2FAB #CF4CCB #DC7CD9

Accessibility & contrast

On white

5.50
#AF2FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF2FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FAB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FAB#FFFFFF#000000##FFFFFF
##AF2FAB1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAE
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#B5416A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2fab;
/* rgb */ color: rgb(175, 47, 171);
/* oklch */ color: oklch(54.8% 0.212 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c4',
    500: '#af2fab',
    950: '#000000',
  },
}
SCSS
$custom: #af2fab;
$custom-light: #cb75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fab",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 301.875,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54826,
    "c": 0.21156,
    "h": 329.4
  },
  "luminance": 0.14087
}

Semantic roles & 50–950 ramp

primary
#AF2FAB
secondary
#75C478
accent
#E14C47
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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