#AF4FB1#AF4FB1

#AF4FB1 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.5% C 0.174 H 326.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF4FB1
RGBrgb(175, 79, 177)
HSLhsl(299, 39%, 50%)
HSVhsv(299, 55%, 69%)
CMYKcmyk(1.1%, 55.4%, 0%, 30.6%)
CIE-LABlab(49.35, 52.62, -34.67)
CIE-LCHlch(49.35, 63.01, 326.62°)
OKLaboklab(58.55% 0.1456 -0.0955)
OKLCHoklch(58.55% 0.174 326.7)
XYZxyz(28.4105, 17.8819, 43.5416)
Luminance0.1788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FB1 #51B14F
analogous
#7E4FB1 #AF4FB1 #B14F82
triadic
#AF4FB1 #B1AF4F #4FB1AF
tetradic
#AF4FB1 #B17E4F #51B14F #4F82B1
square
#AF4FB1 #B17E4F #51B14F #4F82B1
split-complementary
#AF4FB1 #82B14F #4FB17E
monochromatic
#5C295D #853C87 #AF4FB1 #C279C4 #D6A4D7

Accessibility & contrast

On white

4.59
#AF4FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF4FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FB1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FB1#FFFFFF#000000##FFFFFF
##AF4FB11.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446DB4
Deuteranopia (green-blind)
#637AAE
Tritanopia (blue-blind)
#B45B79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4fb1;
/* rgb */ color: rgb(175, 79, 177);
/* oklch */ color: oklch(58.5% 0.174 326.7);
Tailwind
colors: {
  custom: {
    50: '#c985c8',
    500: '#af4fb1',
    950: '#000000',
  },
}
SCSS
$custom: #af4fb1;
$custom-light: #c985c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fb1",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 298.776,
    "s": 38.583,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58545,
    "c": 0.17414,
    "h": 326.7
  },
  "luminance": 0.1788
}

Semantic roles & 50–950 ramp

primary
#AF4FB1
secondary
#99C498
accent
#CF595C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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