#AF3ECA#AF3ECA

#AF3ECA is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.220 H 319.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF3ECA
RGBrgb(175, 62, 202)
HSLhsl(288, 57%, 52%)
HSVhsv(288, 69%, 79%)
CMYKcmyk(13.4%, 69.3%, 0%, 20.8%)
CIE-LABlab(48.04, 64.63, -51.28)
CIE-LCHlch(48.04, 82.50, 321.57°)
OKLaboklab(58.03% 0.1665 -0.1437)
OKLCHoklch(58.03% 0.22 319.2)
XYZxyz(30.0611, 16.8249, 57.5297)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3ECA #59CA3E
analogous
#693ECA #AF3ECA #CA3E9F
triadic
#AF3ECA #CAAF3E #3ECAAF
tetradic
#AF3ECA #CA693E #59CA3E #3E9FCA
square
#AF3ECA #CA693E #59CA3E #3E9FCA
split-complementary
#AF3ECA #9FCA3E #3ECA69
monochromatic
#601F6F #892C9F #AF3ECA #C36ED7 #D79EE4

Accessibility & contrast

On white

4.81
#AF3ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AF3ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3ECA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3ECA#FFFFFF#000000##FFFFFF
##AF3ECA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#4876C7
Tritanopia (blue-blind)
#AF5880
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af3eca;
/* rgb */ color: rgb(175, 62, 202);
/* oklch */ color: oklch(58.0% 0.220 319.2);
Tailwind
colors: {
  custom: {
    50: '#cb7ddb',
    500: '#af3eca',
    950: '#000000',
  },
}
SCSS
$custom: #af3eca;
$custom-light: #cb7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#af3eca",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 288.429,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58031,
    "c": 0.2199,
    "h": 319.2
  },
  "luminance": 0.16823
}

Semantic roles & 50–950 ramp

primary
#AF3ECA
secondary
#9FD193
accent
#E04865
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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