#AF4FB0#AF4FB0

#AF4FB0 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.5% C 0.173 H 327.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF4FB0
RGBrgb(175, 79, 176)
HSLhsl(299, 38%, 50%)
HSVhsv(299, 55%, 69%)
CMYKcmyk(0.6%, 55.1%, 0%, 31%)
CIE-LABlab(49.30, 52.44, -34.16)
CIE-LCHlch(49.30, 62.58, 326.92°)
OKLaboklab(58.49% 0.1455 -0.0941)
OKLCHoklch(58.49% 0.173 327.1)
XYZxyz(28.3112, 17.8422, 43.0186)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FB0 #50B04F
analogous
#7E4FB0 #AF4FB0 #B04F81
triadic
#AF4FB0 #B0AF4F #4FB0AF
tetradic
#AF4FB0 #B07E4F #50B04F #4F81B0
square
#AF4FB0 #B07E4F #50B04F #4F81B0
split-complementary
#AF4FB0 #81B04F #4FB07E
monochromatic
#5B295C #853C86 #AF4FB0 #C279C3 #D5A3D6

Accessibility & contrast

On white

4.60
#AF4FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF4FB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FB0
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FB0#FFFFFF#000000##FFFFFF
##AF4FB01.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446DB3
Deuteranopia (green-blind)
#637AAD
Tritanopia (blue-blind)
#B45A78
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4fb0;
/* rgb */ color: rgb(175, 79, 176);
/* oklch */ color: oklch(58.5% 0.173 327.1);
Tailwind
colors: {
  custom: {
    50: '#c985c8',
    500: '#af4fb0',
    950: '#000000',
  },
}
SCSS
$custom: #af4fb0;
$custom-light: #c985c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fb0",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 176
  },
  "hsl": {
    "h": 299.381,
    "s": 38.039,
    "l": 50
  },
  "oklch": {
    "l": 0.58494,
    "c": 0.17324,
    "h": 327.1
  },
  "luminance": 0.17841
}

Semantic roles & 50–950 ramp

primary
#AF4FB0
secondary
#98C398
accent
#CE5A5B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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