#AF48DB#AF48DB

#AF48DB is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.1% C 0.223 H 314.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF48DB
RGBrgb(175, 72, 219)
HSLhsl(282, 67%, 57%)
HSVhsv(282, 67%, 86%)
CMYKcmyk(20.1%, 67.1%, 0%, 14.1%)
CIE-LABlab(50.53, 63.88, -57.02)
CIE-LCHlch(50.53, 85.63, 318.25°)
OKLaboklab(60.15% 0.1549 -0.1605)
OKLCHoklch(60.15% 0.223 314)
XYZxyz(32.7806, 18.8642, 68.9185)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48DB #74DB48
analogous
#6648DB #AF48DB #DB48BD
triadic
#AF48DB #DBAF48 #48DBAF
tetradic
#AF48DB #DB6648 #74DB48 #48BDDB
square
#AF48DB #DB6648 #74DB48 #48BDDB
split-complementary
#AF48DB #BDDB48 #48DB66
monochromatic
#6B1C8D #9226C0 #AF48DB #C57BE5 #DCAEEF

Accessibility & contrast

On white

4.40
#AF48DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AF48DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48DB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48DB#FFFFFF#000000##000000
##AF48DB1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#407BD8
Tritanopia (blue-blind)
#AB658C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af48db;
/* rgb */ color: rgb(175, 72, 219);
/* oklch */ color: oklch(60.1% 0.223 314.0);
Tailwind
colors: {
  custom: {
    50: '#cb82e7',
    500: '#af48db',
    950: '#000000',
  },
}
SCSS
$custom: #af48db;
$custom-light: #cb82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af48db",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 282.041,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60146,
    "c": 0.22309,
    "h": 314
  },
  "luminance": 0.18863
}

Semantic roles & 50–950 ramp

primary
#AF48DB
secondary
#B3DDA2
accent
#EA3E71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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