#AF3EC5#AF3EC5

#AF3EC5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.216 H 320.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF3EC5
RGBrgb(175, 62, 197)
HSLhsl(290, 54%, 51%)
HSVhsv(290, 69%, 77%)
CMYKcmyk(11.2%, 68.5%, 0%, 22.7%)
CIE-LABlab(47.74, 63.70, -48.86)
CIE-LCHlch(47.74, 80.28, 322.51°)
OKLaboklab(57.72% 0.1667 -0.1366)
OKLCHoklch(57.72% 0.216 320.7)
XYZxyz(29.4787, 16.5919, 54.4623)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EC5 #54C53E
analogous
#6B3EC5 #AF3EC5 #C53E97
triadic
#AF3EC5 #C5AF3E #3EC5AF
tetradic
#AF3EC5 #C56B3E #54C53E #3E97C5
square
#AF3EC5 #C56B3E #54C53E #3E97C5
split-complementary
#AF3EC5 #97C53E #3EC56B
monochromatic
#5D2069 #872E98 #AF3EC5 #C36DD3 #D69CE1

Accessibility & contrast

On white

4.86
#AF3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF3EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EC5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EC5#FFFFFF#000000##FFFFFF
##AF3EC51.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0569C9
Deuteranopia (green-blind)
#4C75C2
Tritanopia (blue-blind)
#B0567D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af3ec5;
/* rgb */ color: rgb(175, 62, 197);
/* oklch */ color: oklch(57.7% 0.216 320.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dd7',
    500: '#af3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #af3ec5;
$custom-light: #ca7dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ec5",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 290.222,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57723,
    "c": 0.21553,
    "h": 320.7
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#AF3EC5
secondary
#9BCD91
accent
#DD4B63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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