#AF48A2#AF48A2

#AF48A2 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 56.9% C 0.172 H 332.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF48A2
RGBrgb(175, 72, 162)
HSLhsl(308, 42%, 48%)
HSVhsv(308, 59%, 69%)
CMYKcmyk(0%, 58.9%, 7.4%, 31.4%)
CIE-LABlab(47.44, 53.26, -28.83)
CIE-LCHlch(47.44, 60.56, 331.57°)
OKLaboklab(56.91% 0.1529 -0.0787)
OKLCHoklch(56.91% 0.172 332.8)
XYZxyz(26.5182, 16.3592, 35.9364)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48A2 #48AF55
analogous
#8848AF #AF48A2 #AF486E
triadic
#AF48A2 #A2AF48 #48A2AF
tetradic
#AF48A2 #AF8848 #48AF55 #486EAF
square
#AF48A2 #AF8848 #48AF55 #486EAF
split-complementary
#AF48A2 #6EAF48 #48AF88
monochromatic
#582452 #84367A #AF48A2 #C470BA #D69BCF

Accessibility & contrast

On white

4.92
#AF48A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF48A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48A2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48A2#FFFFFF#000000##FFFFFF
##AF48A21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4567A5
Deuteranopia (green-blind)
#65769F
Tritanopia (blue-blind)
#B6506E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af48a2;
/* rgb */ color: rgb(175, 72, 162);
/* oklch */ color: oklch(56.9% 0.172 332.8);
Tailwind
colors: {
  custom: {
    50: '#ca81be',
    500: '#af48a2',
    950: '#000000',
  },
}
SCSS
$custom: #af48a2;
$custom-light: #ca81be;
$custom-dark: #000000;
JSON
{
  "hex": "#af48a2",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 307.573,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.17197,
    "h": 332.8
  },
  "luminance": 0.16357
}

Semantic roles & 50–950 ramp

primary
#AF48A2
secondary
#90C297
accent
#D26656
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF48A2

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

Preview Lab → · Contrast checker → · Palette generator →

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