#AF48AF#AF48AF

#AF48AF is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.183 H 327.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF48AF
RGBrgb(175, 72, 175)
HSLhsl(300, 42%, 48%)
HSVhsv(300, 59%, 69%)
CMYKcmyk(0%, 58.9%, 0%, 31.4%)
CIE-LABlab(48.06, 55.49, -35.52)
CIE-LCHlch(48.06, 65.89, 327.38°)
OKLaboklab(57.57% 0.1545 -0.0979)
OKLCHoklch(57.57% 0.183 327.6)
XYZxyz(27.7340, 16.8456, 42.3399)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48AF #48AF48
analogous
#7B48AF #AF48AF #AF487B
triadic
#AF48AF #AFAF48 #48AFAF
tetradic
#AF48AF #AF7B48 #48AF48 #487BAF
square
#AF48AF #AF7B48 #48AF48 #487BAF
split-complementary
#AF48AF #7BAF48 #48AF7B
monochromatic
#582458 #843684 #AF48AF #C470C4 #D69BD6

Accessibility & contrast

On white

4.81
#AF48AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF48AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48AF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48AF#FFFFFF#000000##FFFFFF
##AF48AF1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C69B2
Deuteranopia (green-blind)
#5F77AC
Tritanopia (blue-blind)
#B45575
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af48af;
/* rgb */ color: rgb(175, 72, 175);
/* oklch */ color: oklch(57.6% 0.183 327.6);
Tailwind
colors: {
  custom: {
    50: '#ca81c7',
    500: '#af48af',
    950: '#000000',
  },
}
SCSS
$custom: #af48af;
$custom-light: #ca81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af48af",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.18291,
    "h": 327.6
  },
  "luminance": 0.16844
}

Semantic roles & 50–950 ramp

primary
#AF48AF
secondary
#90C290
accent
#D25656
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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