#AF3EC2#AF3EC2

#AF3EC2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.5% C 0.213 H 321.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF3EC2
RGBrgb(175, 62, 194)
HSLhsl(291, 52%, 50%)
HSVhsv(291, 68%, 76%)
CMYKcmyk(9.8%, 68%, 0%, 23.9%)
CIE-LABlab(47.57, 63.15, -47.40)
CIE-LCHlch(47.57, 78.96, 323.11°)
OKLaboklab(57.54% 0.1668 -0.1323)
OKLCHoklch(57.54% 0.213 321.6)
XYZxyz(29.1384, 16.4558, 52.6700)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EC2 #51C23E
analogous
#6D3EC2 #AF3EC2 #C23E93
triadic
#AF3EC2 #C2AF3E #3EC2AF
tetradic
#AF3EC2 #C26D3E #51C23E #3E93C2
square
#AF3EC2 #C26D3E #51C23E #3E93C2
split-complementary
#AF3EC2 #93C23E #3EC26D
monochromatic
#5C2066 #852F94 #AF3EC2 #C26DD1 #D69BDF

Accessibility & contrast

On white

4.89
#AF3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EC2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EC2#FFFFFF#000000##FFFFFF
##AF3EC21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1169C6
Deuteranopia (green-blind)
#4E75BF
Tritanopia (blue-blind)
#B1557B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af3ec2;
/* rgb */ color: rgb(175, 62, 194);
/* oklch */ color: oklch(57.5% 0.213 321.6);
Tailwind
colors: {
  custom: {
    50: '#ca7cd5',
    500: '#af3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ec2;
$custom-light: #ca7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ec2",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 291.364,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57542,
    "c": 0.21293,
    "h": 321.6
  },
  "luminance": 0.16454
}

Semantic roles & 50–950 ramp

primary
#AF3EC2
secondary
#99CB90
accent
#DB4C61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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