#AF3EC4#AF3EC4

#AF3EC4 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.215 H 321.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF3EC4
RGBrgb(175, 62, 196)
HSLhsl(291, 53%, 51%)
HSVhsv(291, 68%, 77%)
CMYKcmyk(10.7%, 68.4%, 0%, 23.1%)
CIE-LABlab(47.68, 63.52, -48.38)
CIE-LCHlch(47.68, 79.84, 322.71°)
OKLaboklab(57.66% 0.1667 -0.1352)
OKLCHoklch(57.66% 0.215 321)
XYZxyz(29.3645, 16.5462, 53.8609)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EC4 #53C43E
analogous
#6C3EC4 #AF3EC4 #C43E96
triadic
#AF3EC4 #C4AF3E #3EC4AF
tetradic
#AF3EC4 #C46C3E #53C43E #3E96C4
square
#AF3EC4 #C46C3E #53C43E #3E96C4
split-complementary
#AF3EC4 #96C43E #3EC46C
monochromatic
#5D2068 #862E97 #AF3EC4 #C26DD2 #D69CE1

Accessibility & contrast

On white

4.87
#AF3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF3EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EC4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EC4#FFFFFF#000000##FFFFFF
##AF3EC41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A69C8
Deuteranopia (green-blind)
#4C75C1
Tritanopia (blue-blind)
#B0567C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af3ec4;
/* rgb */ color: rgb(175, 62, 196);
/* oklch */ color: oklch(57.7% 0.215 321.0);
Tailwind
colors: {
  custom: {
    50: '#ca7dd6',
    500: '#af3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #af3ec4;
$custom-light: #ca7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ec4",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 290.597,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57662,
    "c": 0.21466,
    "h": 321
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#AF3EC4
secondary
#9ACD91
accent
#DD4B62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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