#AF48CB#AF48CB

#AF48CB is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.2% C 0.208 H 318.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF48CB
RGBrgb(175, 72, 203)
HSLhsl(287, 56%, 54%)
HSVhsv(287, 65%, 80%)
CMYKcmyk(13.8%, 64.5%, 0%, 20.4%)
CIE-LABlab(49.57, 60.70, -49.40)
CIE-LCHlch(49.57, 78.27, 320.86°)
OKLaboklab(59.15% 0.1556 -0.1383)
OKLCHoklch(59.15% 0.208 318.4)
XYZxyz(30.7746, 18.0618, 58.3536)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48CB #64CB48
analogous
#6E48CB #AF48CB #CB48A6
triadic
#AF48CB #CBAF48 #48CBAF
tetradic
#AF48CB #CB6E48 #64CB48 #48A6CB
square
#AF48CB #CB6E48 #64CB48 #48A6CB
split-complementary
#AF48CB #A6CB48 #48CB6E
monochromatic
#652277 #8D2FA6 #AF48CB #C478D9 #D9A7E6

Accessibility & contrast

On white

4.55
#AF48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF48CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF48CB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48CB#FFFFFF#000000##000000
##AF48CB1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6FCF
Deuteranopia (green-blind)
#4E79C8
Tritanopia (blue-blind)
#AF5F83
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af48cb;
/* rgb */ color: rgb(175, 72, 203);
/* oklch */ color: oklch(59.2% 0.208 318.4);
Tailwind
colors: {
  custom: {
    50: '#ca82db',
    500: '#af48cb',
    950: '#000000',
  },
}
SCSS
$custom: #af48cb;
$custom-light: #ca82db;
$custom-dark: #000000;
JSON
{
  "hex": "#af48cb",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 287.176,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59151,
    "c": 0.20814,
    "h": 318.4
  },
  "luminance": 0.1806
}

Semantic roles & 50–950 ramp

primary
#AF48CB
secondary
#A7D39B
accent
#DF4969
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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