#AF48B2#AF48B2

#AF48B2 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.7% C 0.186 H 326.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF48B2
RGBrgb(175, 72, 178)
HSLhsl(298, 42%, 49%)
HSVhsv(298, 60%, 70%)
CMYKcmyk(1.7%, 59.6%, 0%, 30.2%)
CIE-LABlab(48.22, 56.03, -37.04)
CIE-LCHlch(48.22, 67.17, 326.53°)
OKLaboklab(57.73% 0.1548 -0.1023)
OKLCHoklch(57.73% 0.186 326.5)
XYZxyz(28.0319, 16.9647, 43.9089)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48B2 #4BB248
analogous
#7A48B2 #AF48B2 #B24880
triadic
#AF48B2 #B2AF48 #48B2AF
tetradic
#AF48B2 #B27A48 #4BB248 #4880B2
square
#AF48B2 #B27A48 #4BB248 #4880B2
split-complementary
#AF48B2 #80B248 #48B27A
monochromatic
#59255B #843686 #AF48B2 #C371C6 #D69DD7

Accessibility & contrast

On white

4.78
#AF48B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF48B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48B2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48B2#FFFFFF#000000##FFFFFF
##AF48B21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#B45676
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af48b2;
/* rgb */ color: rgb(175, 72, 178);
/* oklch */ color: oklch(57.7% 0.186 326.5);
Tailwind
colors: {
  custom: {
    50: '#ca81c9',
    500: '#af48b2',
    950: '#000000',
  },
}
SCSS
$custom: #af48b2;
$custom-light: #ca81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af48b2",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 298.302,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5773,
    "c": 0.18552,
    "h": 326.5
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

primary
#AF48B2
secondary
#93C492
accent
#D25659
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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