#AF48CD#AF48CD

#AF48CD is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.3% C 0.210 H 317.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF48CD
RGBrgb(175, 72, 205)
HSLhsl(286, 57%, 54%)
HSVhsv(286, 65%, 80%)
CMYKcmyk(14.6%, 64.9%, 0%, 19.6%)
CIE-LABlab(49.69, 61.09, -50.37)
CIE-LCHlch(49.69, 79.18, 320.50°)
OKLaboklab(59.27% 0.1555 -0.1411)
OKLCHoklch(59.27% 0.21 317.8)
XYZxyz(31.0145, 18.1578, 59.6169)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48CD #66CD48
analogous
#6D48CD #AF48CD #CD48A9
triadic
#AF48CD #CDAF48 #48CDAF
tetradic
#AF48CD #CD6D48 #66CD48 #48A9CD
square
#AF48CD #CD6D48 #66CD48 #48A9CD
split-complementary
#AF48CD #A9CD48 #48CD6D
monochromatic
#662179 #8E2EA9 #AF48CD #C478DA #D9A8E7

Accessibility & contrast

On white

4.53
#AF48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF48CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48CD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48CD#FFFFFF#000000##000000
##AF48CD1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1770D1
Deuteranopia (green-blind)
#4D79CA
Tritanopia (blue-blind)
#AE6084
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af48cd;
/* rgb */ color: rgb(175, 72, 205);
/* oklch */ color: oklch(59.3% 0.210 317.8);
Tailwind
colors: {
  custom: {
    50: '#ca82dd',
    500: '#af48cd',
    950: '#000000',
  },
}
SCSS
$custom: #af48cd;
$custom-light: #ca82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af48cd",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 286.466,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59272,
    "c": 0.20999,
    "h": 317.8
  },
  "luminance": 0.18156
}

Semantic roles & 50–950 ramp

primary
#AF48CD
secondary
#A9D59C
accent
#E0476A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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