#AF48DC#AF48DC

#AF48DC is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.224 H 313.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF48DC
RGBrgb(175, 72, 220)
HSLhsl(282, 68%, 57%)
HSVhsv(282, 67%, 86%)
CMYKcmyk(20.5%, 67.3%, 0%, 13.7%)
CIE-LABlab(50.59, 64.09, -57.49)
CIE-LCHlch(50.59, 86.09, 318.11°)
OKLaboklab(60.21% 0.1548 -0.1619)
OKLCHoklch(60.21% 0.224 313.7)
XYZxyz(32.9126, 18.9170, 69.6139)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48DC #75DC48
analogous
#6548DC #AF48DC #DC48BF
triadic
#AF48DC #DCAF48 #48DCAF
tetradic
#AF48DC #DC6548 #75DC48 #48BFDC
square
#AF48DC #DC6548 #75DC48 #48BFDC
split-complementary
#AF48DC #BFDC48 #48DC65
monochromatic
#6B1B8E #9225C2 #AF48DC #C57BE6 #DCAFF0

Accessibility & contrast

On white

4.39
#AF48DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AF48DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48DC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48DC#FFFFFF#000000##000000
##AF48DC1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#AB668D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af48dc;
/* rgb */ color: rgb(175, 72, 220);
/* oklch */ color: oklch(60.2% 0.224 313.7);
Tailwind
colors: {
  custom: {
    50: '#cb82e8',
    500: '#af48dc',
    950: '#000000',
  },
}
SCSS
$custom: #af48dc;
$custom-light: #cb82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af48dc",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 281.757,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6021,
    "c": 0.22403,
    "h": 313.7
  },
  "luminance": 0.18916
}

Semantic roles & 50–950 ramp

primary
#AF48DC
secondary
#B4DEA2
accent
#EB3D72
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48DC

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

Preview Lab → · Contrast checker → · Palette generator →

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