#AF3EA1#AF3EA1

#AF3EA1 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.186 H 333.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA1
RGBrgb(175, 62, 161)
HSLhsl(307, 48%, 46%)
HSVhsv(307, 65%, 69%)
CMYKcmyk(0%, 64.6%, 8%, 31.4%)
CIE-LABlab(45.82, 57.43, -30.78)
CIE-LCHlch(45.82, 65.16, 331.81°)
OKLaboklab(55.71% 0.1654 -0.0842)
OKLCHoklch(55.71% 0.186 333)
XYZxyz(25.8349, 15.1344, 35.2718)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA1 #3EAF4C
analogous
#853EAF #AF3EA1 #AF3E69
triadic
#AF3EA1 #A1AF3E #3EA1AF
tetradic
#AF3EA1 #AF853E #3EAF4C #3E69AF
square
#AF3EA1 #AF853E #3EAF4C #3E69AF
split-complementary
#AF3EA1 #69AF3E #3EAF85
monochromatic
#551E4E #822E77 #AF3EA1 #C863BB #D890CF

Accessibility & contrast

On white

5.22
#AF3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF3EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA1#FFFFFF#000000##FFFFFF
##AF3EA11.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#60729E
Tritanopia (blue-blind)
#B7476A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ea1;
/* rgb */ color: rgb(175, 62, 161);
/* oklch */ color: oklch(55.7% 0.186 333.0);
Tailwind
colors: {
  custom: {
    50: '#ca7bbd',
    500: '#af3ea1',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea1;
$custom-light: #ca7bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea1",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 307.434,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.18558,
    "h": 333
  },
  "luminance": 0.15132
}

Semantic roles & 50–950 ramp

primary
#AF3EA1
secondary
#86C38E
accent
#D76151
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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