#AF3EC7#AF3EC7

#AF3EC7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.217 H 320.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF3EC7
RGBrgb(175, 62, 199)
HSLhsl(289, 55%, 51%)
HSVhsv(289, 69%, 78%)
CMYKcmyk(12.1%, 68.8%, 0%, 22%)
CIE-LABlab(47.86, 64.07, -49.83)
CIE-LCHlch(47.86, 81.17, 322.13°)
OKLaboklab(57.85% 0.1666 -0.1394)
OKLCHoklch(57.85% 0.217 320.1)
XYZxyz(29.7094, 16.6842, 55.6772)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EC7 #56C73E
analogous
#6A3EC7 #AF3EC7 #C73E9A
triadic
#AF3EC7 #C7AF3E #3EC7AF
tetradic
#AF3EC7 #C76A3E #56C73E #3E9AC7
square
#AF3EC7 #C76A3E #56C73E #3E9AC7
split-complementary
#AF3EC7 #9AC73E #3EC76A
monochromatic
#5E1F6B #882D9B #AF3EC7 #C36DD5 #D69DE3

Accessibility & contrast

On white

4.84
#AF3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF3EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EC7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EC7#FFFFFF#000000##FFFFFF
##AF3EC71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#4A76C4
Tritanopia (blue-blind)
#B0577E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af3ec7;
/* rgb */ color: rgb(175, 62, 199);
/* oklch */ color: oklch(57.8% 0.217 320.1);
Tailwind
colors: {
  custom: {
    50: '#cb7dd9',
    500: '#af3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #af3ec7;
$custom-light: #cb7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ec7",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 289.489,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57846,
    "c": 0.21728,
    "h": 320.1
  },
  "luminance": 0.16683
}

Semantic roles & 50–950 ramp

primary
#AF3EC7
secondary
#9DCF92
accent
#DE4964
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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