#AF3ED2#AF3ED2

#AF3ED2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.5% C 0.227 H 317.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF3ED2
RGBrgb(175, 62, 210)
HSLhsl(286, 62%, 53%)
HSVhsv(286, 70%, 82%)
CMYKcmyk(16.7%, 70.5%, 0%, 17.6%)
CIE-LABlab(48.53, 66.16, -55.09)
CIE-LCHlch(48.53, 86.09, 320.22°)
OKLaboklab(58.54% 0.1659 -0.1548)
OKLCHoklch(58.54% 0.227 317)
XYZxyz(31.0330, 17.2136, 62.6482)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ED2 #61D23E
analogous
#653ED2 #AF3ED2 #D23EAB
triadic
#AF3ED2 #D2AF3E #3ED2AF
tetradic
#AF3ED2 #D2653E #61D23E #3EABD2
square
#AF3ED2 #D2653E #61D23E #3EABD2
split-complementary
#AF3ED2 #ABD23E #3ED265
monochromatic
#631C79 #8C28AB #AF3ED2 #C470DE #D8A1E9

Accessibility & contrast

On white

4.73
#AF3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ED2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ED2#FFFFFF#000000##FFFFFF
##AF3ED21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#4077CF
Tritanopia (blue-blind)
#AD5C84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af3ed2;
/* rgb */ color: rgb(175, 62, 210);
/* oklch */ color: oklch(58.5% 0.227 317.0);
Tailwind
colors: {
  custom: {
    50: '#cb7de0',
    500: '#af3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ed2;
$custom-light: #cb7de0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ed2",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 285.811,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58537,
    "c": 0.22695,
    "h": 317
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#AF3ED2
secondary
#A5D696
accent
#E54369
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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