#AF3CD7#AF3CD7

#AF3CD7 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.234 H 315.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF3CD7
RGBrgb(175, 60, 215)
HSLhsl(285, 66%, 54%)
HSVhsv(285, 72%, 84%)
CMYKcmyk(18.6%, 72.1%, 0%, 15.7%)
CIE-LABlab(48.58, 67.88, -57.87)
CIE-LCHlch(48.58, 89.20, 319.55°)
OKLaboklab(58.67% 0.1674 -0.163)
OKLCHoklch(58.67% 0.234 315.8)
XYZxyz(31.5589, 17.2532, 65.9446)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CD7 #64D73C
analogous
#623CD7 #AF3CD7 #D73CB2
triadic
#AF3CD7 #D7AF3C #3CD7AF
tetradic
#AF3CD7 #D7623C #64D73C #3CB2D7
square
#AF3CD7 #D7623C #64D73C #3CB2D7
split-complementary
#AF3CD7 #B2D73C #3CD762
monochromatic
#651A7F #8D24B1 #AF3CD7 #C46FE1 #D9A2EC

Accessibility & contrast

On white

4.72
#AF3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CD7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CD7#FFFFFF#000000##FFFFFF
##AF3CD71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#3976D4
Tritanopia (blue-blind)
#AC5D86
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af3cd7;
/* rgb */ color: rgb(175, 60, 215);
/* oklch */ color: oklch(58.7% 0.234 315.8);
Tailwind
colors: {
  custom: {
    50: '#cb7ce4',
    500: '#af3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #af3cd7;
$custom-light: #cb7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#af3cd7",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 284.516,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58673,
    "c": 0.23362,
    "h": 315.8
  },
  "luminance": 0.17252
}

Semantic roles & 50–950 ramp

primary
#AF3CD7
secondary
#A7D896
accent
#E93F6B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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