#AF4FAB#AF4FAB

#AF4FAB is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.2% C 0.169 H 329.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF4FAB
RGBrgb(175, 79, 171)
HSLhsl(303, 38%, 50%)
HSVhsv(303, 55%, 69%)
CMYKcmyk(0%, 54.9%, 2.3%, 31.4%)
CIE-LABlab(49.07, 51.54, -31.60)
CIE-LCHlch(49.07, 60.46, 328.48°)
OKLaboklab(58.24% 0.1448 -0.0867)
OKLCHoklch(58.24% 0.169 329.1)
XYZxyz(27.8255, 17.6479, 40.4610)
Luminance0.1765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FAB #4FAF53
analogous
#834FAF #AF4FAB #AF4F7B
triadic
#AF4FAB #ABAF4F #4FABAF
tetradic
#AF4FAB #AF834F #4FAF53 #4F7BAF
square
#AF4FAB #AF834F #4FAF53 #4F7BAF
split-complementary
#AF4FAB #7BAF4F #4FAF83
monochromatic
#5B2959 #853C82 #AF4FAB #C279BF #D5A3D3

Accessibility & contrast

On white

4.64
#AF4FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF4FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FAB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FAB#FFFFFF#000000##FFFFFF
##AF4FAB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486CAE
Deuteranopia (green-blind)
#6679A8
Tritanopia (blue-blind)
#B55976
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4fab;
/* rgb */ color: rgb(175, 79, 171);
/* oklch */ color: oklch(58.2% 0.169 329.1);
Tailwind
colors: {
  custom: {
    50: '#c985c4',
    500: '#af4fab',
    950: '#000000',
  },
}
SCSS
$custom: #af4fab;
$custom-light: #c985c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fab",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 302.5,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58241,
    "c": 0.1688,
    "h": 329.1
  },
  "luminance": 0.17646
}

Semantic roles & 50–950 ramp

primary
#AF4FAB
secondary
#97C399
accent
#CE5F5A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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