#AF3FD2#AF3FD2

#AF3FD2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.226 H 316.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF3FD2
RGBrgb(175, 63, 210)
HSLhsl(286, 62%, 54%)
HSVhsv(286, 70%, 82%)
CMYKcmyk(16.7%, 70%, 0%, 17.6%)
CIE-LABlab(48.66, 65.77, -54.87)
CIE-LCHlch(48.66, 85.65, 320.16°)
OKLaboklab(58.64% 0.1649 -0.1542)
OKLCHoklch(58.64% 0.226 316.9)
XYZxyz(31.0878, 17.3234, 62.6665)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FD2 #62D23F
analogous
#653FD2 #AF3FD2 #D23FAB
triadic
#AF3FD2 #D2AF3F #3FD2AF
tetradic
#AF3FD2 #D2653F #62D23F #3FABD2
square
#AF3FD2 #D2653F #62D23F #3FABD2
split-complementary
#AF3FD2 #ABD23F #3FD265
monochromatic
#641D7A #8C28AC #AF3FD2 #C471DE #D8A2E9

Accessibility & contrast

On white

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

On black

4.46
#AF3FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF3FD2#FFFFFF#000000##FFFFFF
##AF3FD21.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#4177CF
Tritanopia (blue-blind)
#AD5C84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af3fd2;
/* rgb */ color: rgb(175, 63, 210);
/* oklch */ color: oklch(58.6% 0.226 316.9);
Tailwind
colors: {
  custom: {
    50: '#cb7ee0',
    500: '#af3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #af3fd2;
$custom-light: #cb7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fd2",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 285.714,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58635,
    "c": 0.22579,
    "h": 316.9
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#AF3FD2
secondary
#A6D697
accent
#E54369
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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