#AF4CD1#AF4CD1

#AF4CD1 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.0% C 0.208 H 316.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF4CD1
RGBrgb(175, 76, 209)
HSLhsl(285, 59%, 56%)
HSVhsv(285, 64%, 82%)
CMYKcmyk(16.3%, 63.6%, 0%, 18%)
CIE-LABlab(50.56, 60.13, -51.27)
CIE-LCHlch(50.56, 79.02, 319.55°)
OKLaboklab(59.97% 0.1509 -0.1437)
OKLCHoklch(59.97% 0.208 316.4)
XYZxyz(31.7705, 18.8875, 62.2813)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD1 #6ED14C
analogous
#6C4CD1 #AF4CD1 #D14CB0
triadic
#AF4CD1 #D1AF4C #4CD1AF
tetradic
#AF4CD1 #D16C4C #6ED14C #4CB0D1
square
#AF4CD1 #D16C4C #6ED14C #4CB0D1
split-complementary
#AF4CD1 #B0D14C #4CD16C
monochromatic
#692181 #902EB2 #AF4CD1 #C57DDE #DBADEA

Accessibility & contrast

On white

4.40
#AF4CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AF4CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CD1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CD1#FFFFFF#000000##000000
##AF4CD11.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B72D5
Deuteranopia (green-blind)
#4D7BCE
Tritanopia (blue-blind)
#AD6488
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4cd1;
/* rgb */ color: rgb(175, 76, 209);
/* oklch */ color: oklch(60.0% 0.208 316.4);
Tailwind
colors: {
  custom: {
    50: '#ca84e0',
    500: '#af4cd1',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd1;
$custom-light: #ca84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd1",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 284.662,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59973,
    "c": 0.2084,
    "h": 316.4
  },
  "luminance": 0.18886
}

Semantic roles & 50–950 ramp

primary
#AF4CD1
secondary
#AFD8A1
accent
#E2466E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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