#AF3ED8#AF3ED8

#AF3ED8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.9% C 0.232 H 315.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF3ED8
RGBrgb(175, 62, 216)
HSLhsl(284, 66%, 55%)
HSVhsv(284, 71%, 85%)
CMYKcmyk(19%, 71.3%, 0%, 15.3%)
CIE-LABlab(48.91, 67.32, -57.91)
CIE-LCHlch(48.91, 88.80, 319.29°)
OKLaboklab(58.93% 0.1654 -0.1631)
OKLCHoklch(58.93% 0.232 315.4)
XYZxyz(31.7945, 17.5183, 66.6590)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ED8 #67D83E
analogous
#623ED8 #AF3ED8 #D83EB4
triadic
#AF3ED8 #D8AF3E #3ED8AF
tetradic
#AF3ED8 #D8623E #67D83E #3EB4D8
square
#AF3ED8 #D8623E #67D83E #3EB4D8
split-complementary
#AF3ED8 #B4D83E #3ED862
monochromatic
#661A81 #8E24B4 #AF3ED8 #C471E2 #D9A4ED

Accessibility & contrast

On white

4.66
#AF3ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF3ED8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ED8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ED8#FFFFFF#000000##FFFFFF
##AF3ED81.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#3A77D5
Tritanopia (blue-blind)
#AC5E87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af3ed8;
/* rgb */ color: rgb(175, 62, 216);
/* oklch */ color: oklch(58.9% 0.232 315.4);
Tailwind
colors: {
  custom: {
    50: '#cb7de5',
    500: '#af3ed8',
    950: '#000000',
  },
}
SCSS
$custom: #af3ed8;
$custom-light: #cb7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ed8",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 216
  },
  "hsl": {
    "h": 284.026,
    "s": 66.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58928,
    "c": 0.23228,
    "h": 315.4
  },
  "luminance": 0.17517
}

Semantic roles & 50–950 ramp

primary
#AF3ED8
secondary
#AAD998
accent
#E93E6C
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF3ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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