#AF3ED7#AF3ED7

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

Color values

HEX#AF3ED7
RGBrgb(175, 62, 215)
HSLhsl(284, 66%, 54%)
HSVhsv(284, 71%, 84%)
CMYKcmyk(18.6%, 71.2%, 0%, 15.7%)
CIE-LABlab(48.84, 67.12, -57.45)
CIE-LCHlch(48.84, 88.35, 319.44°)
OKLaboklab(58.86% 0.1655 -0.1617)
OKLCHoklch(58.86% 0.231 315.6)
XYZxyz(31.6656, 17.4667, 65.9802)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ED7 #66D73E
analogous
#633ED7 #AF3ED7 #D73EB2
triadic
#AF3ED7 #D7AF3E #3ED7AF
tetradic
#AF3ED7 #D7633E #66D73E #3EB2D7
square
#AF3ED7 #D7633E #66D73E #3EB2D7
split-complementary
#AF3ED7 #B2D73E #3ED763
monochromatic
#661B80 #8E25B3 #AF3ED7 #C471E2 #D9A3EC

Accessibility & contrast

On white

4.67
#AF3ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF3ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ED7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ED7#FFFFFF#000000##FFFFFF
##AF3ED71.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af3ed7;
/* rgb */ color: rgb(175, 62, 215);
/* oklch */ color: oklch(58.9% 0.231 315.6);
Tailwind
colors: {
  custom: {
    50: '#cb7de4',
    500: '#af3ed7',
    950: '#000000',
  },
}
SCSS
$custom: #af3ed7;
$custom-light: #cb7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ed7",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 215
  },
  "hsl": {
    "h": 284.314,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58862,
    "c": 0.23139,
    "h": 315.6
  },
  "luminance": 0.17466
}

Semantic roles & 50–950 ramp

primary
#AF3ED7
secondary
#A9D998
accent
#E93F6B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF3ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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