#AF52CB#AF52CB

#AF52CB is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.3% C 0.194 H 317.7°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF52CB
RGBrgb(175, 82, 203)
HSLhsl(286, 54%, 56%)
HSVhsv(286, 60%, 80%)
CMYKcmyk(13.8%, 59.6%, 0%, 20.4%)
CIE-LABlab(51.22, 56.17, -46.77)
CIE-LCHlch(51.22, 73.09, 320.22°)
OKLaboklab(60.35% 0.1436 -0.1306)
OKLCHoklch(60.35% 0.194 317.7)
XYZxyz(31.4745, 19.4616, 58.5869)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52CB #6ECB52
analogous
#7252CB #AF52CB #CB52AA
triadic
#AF52CB #CBAF52 #52CBAF
tetradic
#AF52CB #CB7252 #6ECB52 #52AACB
square
#AF52CB #CB7252 #6ECB52 #52AACB
split-complementary
#AF52CB #AACB52 #52CB72
monochromatic
#69267D #9034AC #AF52CB #C581D9 #DBB0E7

Accessibility & contrast

On white

4.29
#AF52CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#AF52CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52CB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52CB#FFFFFF#000000##000000
##AF52CB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3274CF
Deuteranopia (green-blind)
#567DC8
Tritanopia (blue-blind)
#AE6687
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af52cb;
/* rgb */ color: rgb(175, 82, 203);
/* oklch */ color: oklch(60.3% 0.194 317.7);
Tailwind
colors: {
  custom: {
    50: '#ca88db',
    500: '#af52cb',
    950: '#000000',
  },
}
SCSS
$custom: #af52cb;
$custom-light: #ca88db;
$custom-dark: #000000;
JSON
{
  "hex": "#af52cb",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 286.116,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.19416,
    "h": 317.7
  },
  "luminance": 0.1946
}

Semantic roles & 50–950 ramp

primary
#AF52CB
secondary
#AFD5A3
accent
#DD4B6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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