#AF48AB#AF48AB

#AF48AB is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.4% C 0.179 H 329.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF48AB
RGBrgb(175, 72, 171)
HSLhsl(302, 42%, 48%)
HSVhsv(302, 59%, 69%)
CMYKcmyk(0%, 58.9%, 2.3%, 31.4%)
CIE-LABlab(47.87, 54.79, -33.48)
CIE-LCHlch(47.87, 64.21, 328.57°)
OKLaboklab(57.36% 0.1541 -0.0921)
OKLCHoklch(57.36% 0.179 329.1)
XYZxyz(27.3470, 16.6908, 40.3014)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48AB #48AF4C
analogous
#7F48AF #AF48AB #AF4877
triadic
#AF48AB #ABAF48 #48ABAF
tetradic
#AF48AB #AF7F48 #48AF4C #4877AF
square
#AF48AB #AF7F48 #48AF4C #4877AF
split-complementary
#AF48AB #77AF48 #48AF7F
monochromatic
#582456 #843681 #AF48AB #C470C1 #D69BD4

Accessibility & contrast

On white

4.84
#AF48AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF48AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48AB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48AB#FFFFFF#000000##FFFFFF
##AF48AB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F69AE
Deuteranopia (green-blind)
#6177A8
Tritanopia (blue-blind)
#B55373
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af48ab;
/* rgb */ color: rgb(175, 72, 171);
/* oklch */ color: oklch(57.4% 0.179 329.1);
Tailwind
colors: {
  custom: {
    50: '#ca81c4',
    500: '#af48ab',
    950: '#000000',
  },
}
SCSS
$custom: #af48ab;
$custom-light: #ca81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af48ab",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 171
  },
  "hsl": {
    "h": 302.33,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57363,
    "c": 0.17947,
    "h": 329.1
  },
  "luminance": 0.16689
}

Semantic roles & 50–950 ramp

primary
#AF48AB
secondary
#90C292
accent
#D25B56
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF48AB

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

Preview Lab → · Contrast checker → · Palette generator →

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