#AF3CD9#AF3CD9

#AF3CD9 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.8% C 0.235 H 315.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF3CD9
RGBrgb(175, 60, 217)
HSLhsl(284, 67%, 54%)
HSVhsv(284, 72%, 85%)
CMYKcmyk(19.4%, 72.4%, 0%, 14.9%)
CIE-LABlab(48.71, 68.27, -58.81)
CIE-LCHlch(48.71, 90.10, 319.26°)
OKLaboklab(58.81% 0.1672 -0.1657)
OKLCHoklch(58.81% 0.235 315.2)
XYZxyz(31.8174, 17.3566, 67.3063)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CD9 #66D93C
analogous
#613CD9 #AF3CD9 #D93CB5
triadic
#AF3CD9 #D9AF3C #3CD9AF
tetradic
#AF3CD9 #D9613C #66D93C #3CB5D9
square
#AF3CD9 #D9613C #66D93C #3CB5D9
split-complementary
#AF3CD9 #B5D93C #3CD961
monochromatic
#661981 #8E23B5 #AF3CD9 #C46FE3 #D9A2ED

Accessibility & contrast

On white

4.70
#AF3CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF3CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CD9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CD9#FFFFFF#000000##FFFFFF
##AF3CD91.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#3777D6
Tritanopia (blue-blind)
#AC5E87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af3cd9;
/* rgb */ color: rgb(175, 60, 217);
/* oklch */ color: oklch(58.8% 0.235 315.2);
Tailwind
colors: {
  custom: {
    50: '#cb7ce5',
    500: '#af3cd9',
    950: '#000000',
  },
}
SCSS
$custom: #af3cd9;
$custom-light: #cb7ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3cd9",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 217
  },
  "hsl": {
    "h": 283.949,
    "s": 67.382,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58806,
    "c": 0.23538,
    "h": 315.2
  },
  "luminance": 0.17355
}

Semantic roles & 50–950 ramp

primary
#AF3CD9
secondary
#A9DA97
accent
#EA3E6C
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF3CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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