#AF48D9#AF48D9

#AF48D9 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.0% C 0.221 H 314.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF48D9
RGBrgb(175, 72, 217)
HSLhsl(283, 66%, 57%)
HSVhsv(283, 67%, 85%)
CMYKcmyk(19.4%, 66.8%, 0%, 14.9%)
CIE-LABlab(50.40, 63.48, -56.08)
CIE-LCHlch(50.40, 84.70, 318.54°)
OKLaboklab(60.02% 0.155 -0.1578)
OKLCHoklch(60.02% 0.221 314.5)
XYZxyz(32.5189, 18.7595, 67.5401)
Luminance0.1876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48D9 #72D948
analogous
#6748D9 #AF48D9 #D948BA
triadic
#AF48D9 #D9AF48 #48D9AF
tetradic
#AF48D9 #D96748 #72D948 #48BAD9
square
#AF48D9 #D96748 #72D948 #48BAD9
split-complementary
#AF48D9 #BAD948 #48D967
monochromatic
#6A1D8A #9127BD #AF48D9 #C57BE4 #DBADEE

Accessibility & contrast

On white

4.42
#AF48D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AF48D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48D9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48D9#FFFFFF#000000##000000
##AF48D91.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#427BD6
Tritanopia (blue-blind)
#AB658B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af48d9;
/* rgb */ color: rgb(175, 72, 217);
/* oklch */ color: oklch(60.0% 0.221 314.5);
Tailwind
colors: {
  custom: {
    50: '#cb82e5',
    500: '#af48d9',
    950: '#000000',
  },
}
SCSS
$custom: #af48d9;
$custom-light: #cb82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af48d9",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 282.621,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60018,
    "c": 0.22121,
    "h": 314.5
  },
  "luminance": 0.18758
}

Semantic roles & 50–950 ramp

primary
#AF48D9
secondary
#B2DCA1
accent
#E93F70
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48D9

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

Preview Lab → · Contrast checker → · Palette generator →

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