#AF4BAB#AF4BAB

#AF4BAB is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.7% C 0.175 H 329.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF4BAB
RGBrgb(175, 75, 171)
HSLhsl(302, 40%, 49%)
HSVhsv(302, 57%, 69%)
CMYKcmyk(0%, 57.1%, 2.3%, 31.4%)
CIE-LABlab(48.37, 53.42, -32.69)
CIE-LCHlch(48.37, 62.63, 328.53°)
OKLaboklab(57.73% 0.1502 -0.0898)
OKLCHoklch(57.73% 0.175 329.1)
XYZxyz(27.5457, 17.0882, 40.3677)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BAB #4BAF4F
analogous
#814BAF #AF4BAB #AF4B79
triadic
#AF4BAB #ABAF4B #4BABAF
tetradic
#AF4BAB #AF814B #4BAF4F #4B79AF
square
#AF4BAB #AF814B #4BAF4F #4B79AF
split-complementary
#AF4BAB #79AF4B #4BAF81
monochromatic
#592657 #843981 #AF4BAB #C374C0 #D69FD4

Accessibility & contrast

On white

4.75
#AF4BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF4BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4BAB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BAB#FFFFFF#000000##FFFFFF
##AF4BAB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436AAE
Deuteranopia (green-blind)
#6378A8
Tritanopia (blue-blind)
#B55674
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4bab;
/* rgb */ color: rgb(175, 75, 171);
/* oklch */ color: oklch(57.7% 0.175 329.1);
Tailwind
colors: {
  custom: {
    50: '#c983c4',
    500: '#af4bab',
    950: '#000000',
  },
}
SCSS
$custom: #af4bab;
$custom-light: #c983c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bab",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 302.4,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57731,
    "c": 0.17498,
    "h": 329.1
  },
  "luminance": 0.17086
}

Semantic roles & 50–950 ramp

primary
#AF4BAB
secondary
#93C295
accent
#D05D58
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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