#AF48DF#AF48DF

#AF48DF is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.4% C 0.227 H 313.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF48DF
RGBrgb(175, 72, 223)
HSLhsl(281, 70%, 58%)
HSVhsv(281, 68%, 87%)
CMYKcmyk(21.5%, 67.7%, 0%, 12.5%)
CIE-LABlab(50.78, 64.70, -58.89)
CIE-LCHlch(50.78, 87.48, 317.69°)
OKLaboklab(60.41% 0.1546 -0.166)
OKLCHoklch(60.41% 0.227 313)
XYZxyz(33.3135, 19.0774, 71.7252)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48DF #78DF48
analogous
#6348DF #AF48DF #DF48C4
triadic
#AF48DF #DFAF48 #48DFAF
tetradic
#AF48DF #DF6348 #78DF48 #48C4DF
square
#AF48DF #DF6348 #78DF48 #48C4DF
split-complementary
#AF48DF #C4DF48 #48DF63
monochromatic
#6C1A93 #9323C7 #AF48DF #C67CE8 #DDB0F1

Accessibility & contrast

On white

4.36
#AF48DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF48DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48DF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48DF#FFFFFF#000000##000000
##AF48DF1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#3C7BDC
Tritanopia (blue-blind)
#AA678E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af48df;
/* rgb */ color: rgb(175, 72, 223);
/* oklch */ color: oklch(60.4% 0.227 313.0);
Tailwind
colors: {
  custom: {
    50: '#cb83ea',
    500: '#af48df',
    950: '#000000',
  },
}
SCSS
$custom: #af48df;
$custom-light: #cb83ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af48df",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 280.927,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60405,
    "c": 0.22686,
    "h": 313
  },
  "luminance": 0.19076
}

Semantic roles & 50–950 ramp

primary
#AF48DF
secondary
#B6E0A3
accent
#ED3B73
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF48DF

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

Preview Lab → · Contrast checker → · Palette generator →

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