#AF48D4#AF48D4

#AF48D4 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.217 H 315.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF48D4
RGBrgb(175, 72, 212)
HSLhsl(284, 62%, 56%)
HSVhsv(284, 66%, 83%)
CMYKcmyk(17.5%, 66%, 0%, 16.9%)
CIE-LABlab(50.10, 62.48, -53.71)
CIE-LCHlch(50.10, 82.39, 319.31°)
OKLaboklab(59.7% 0.1553 -0.1509)
OKLCHoklch(59.7% 0.217 315.8)
XYZxyz(31.8784, 18.5033, 64.1669)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48D4 #6DD448
analogous
#6948D4 #AF48D4 #D448B3
triadic
#AF48D4 #D4AF48 #48D4AF
tetradic
#AF48D4 #D46948 #6DD448 #48B3D4
square
#AF48D4 #D46948 #6DD448 #48B3D4
split-complementary
#AF48D4 #B3D448 #48D469
monochromatic
#681F83 #902AB4 #AF48D4 #C57AE0 #DAABEB

Accessibility & contrast

On white

4.47
#AF48D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AF48D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48D4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48D4#FFFFFF#000000##000000
##AF48D41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#477AD1
Tritanopia (blue-blind)
#AD6388
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af48d4;
/* rgb */ color: rgb(175, 72, 212);
/* oklch */ color: oklch(59.7% 0.217 315.8);
Tailwind
colors: {
  custom: {
    50: '#cb82e2',
    500: '#af48d4',
    950: '#000000',
  },
}
SCSS
$custom: #af48d4;
$custom-light: #cb82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af48d4",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 284.143,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59703,
    "c": 0.21652,
    "h": 315.8
  },
  "luminance": 0.18502
}

Semantic roles & 50–950 ramp

primary
#AF48D4
secondary
#AED99F
accent
#E5436E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF48D4

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

Preview Lab → · Contrast checker → · Palette generator →

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