#AF48C2#AF48C2

#AF48C2 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.6% C 0.200 H 321.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF48C2
RGBrgb(175, 72, 194)
HSLhsl(291, 50%, 52%)
HSVhsv(291, 63%, 76%)
CMYKcmyk(9.8%, 62.9%, 0%, 23.9%)
CIE-LABlab(49.06, 58.98, -45.02)
CIE-LCHlch(49.06, 74.19, 322.64°)
OKLaboklab(58.62% 0.1556 -0.1255)
OKLCHoklch(58.62% 0.2 321.1)
XYZxyz(29.7331, 17.6452, 52.8682)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48C2 #5BC248
analogous
#7248C2 #AF48C2 #C24898
triadic
#AF48C2 #C2AF48 #48C2AF
tetradic
#AF48C2 #C27248 #5BC248 #4898C2
square
#AF48C2 #C27248 #5BC248 #4898C2
split-complementary
#AF48C2 #98C248 #48C272
monochromatic
#61246C #8A339A #AF48C2 #C376D1 #D7A4E1

Accessibility & contrast

On white

4.64
#AF48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF48C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48C2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48C2#FFFFFF#000000##FFFFFF
##AF48C21.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6DC6
Deuteranopia (green-blind)
#5578BF
Tritanopia (blue-blind)
#B05C7F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af48c2;
/* rgb */ color: rgb(175, 72, 194);
/* oklch */ color: oklch(58.6% 0.200 321.1);
Tailwind
colors: {
  custom: {
    50: '#ca82d5',
    500: '#af48c2',
    950: '#000000',
  },
}
SCSS
$custom: #af48c2;
$custom-light: #ca82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af48c2",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 290.656,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5862,
    "c": 0.19985,
    "h": 321.1
  },
  "luminance": 0.17644
}

Semantic roles & 50–950 ramp

primary
#AF48C2
secondary
#A1CE98
accent
#DA4E64
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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